Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

Ability to disable pycache symlinks

Fechada
#4,198 5 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Um pull request relacionado já foi integrado.

  • #4233 de @stevendee-recon — integrado
  • #4264 de @rickeylev — integrado

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
68/100
Tipo de issue
Funcionalidade
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
python
Domínio
build-system

Direção de pesquisa

Start by reading the python_repository change in #3661 and the tar.bzl behavior described in this issue. The requested outcome is a way to disable the functionality completely so the repository contains no __pycache__ symlinks.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

#3661 made python_repository write __pycache__ symlinks with targets that escape Bazel. Since the repository sets reproducible = True, these links get stored in the repository contents cache and shared. This can lead to surprises, as the symlink target validity varies by host system.

The recommended opt-out procedure is to set RULES_PYTHON_PYCACHE_DIR=/dev/null. But this winds up littering the repository cache with a bunch of symlinks to a character device, which, when processed by tar.bzl, become literal character devices and prevent any py_binary being packaged into a tar layer.

There should be a way to completely disable the #3661 functionality and get a repository without any __pycache__ symlinks at all.

Linguagem predominante
Starlark
Estrelas
687
Forks
726
Merge médio
1d 3h
PRs com merge (30d)
83

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de bazel-contrib/rules_python

Todas as issues de bazel-contrib/rules_python

Issues semelhantes

Mais issues de Build System

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.