bazelbuild/bazel

Add support for comments in .bazelignore files

Open

#19.821 aberto em 15 de out. de 2023

Ver no GitHub
 (0 comments) (1 reaction) (0 assignees)Java (4.465 forks)batch import
P2help wantedteam-OSStype: feature request

Métricas do repositório

Stars
 (25.384 stars)
Métricas de merge de PR
 (Mesclagem média 22d 20h) (77 fundiu PRs em 30d)

Description

Description of the feature request:

It would be nice if it would be possible to use comments in .bazelignore files, e.g.

ree/acceptance_tests/ # has its own MODULE.bazel file
third_party # ignore third-party folder

Currently, line 1 is interpreted by Bazel as "ignore folder that is named ree/acceptance_tests/ # has its own MODULE.bazel file", i.e. it considers the comment as a part of the path name to ignore.

Since # works as a comment in BUILD(.build), WORKSPACE(.bazel), MODULE.bazel, .bazelrc etc. it would be nice if it would also work for .bazelignore files

What underlying problem are you trying to solve with this feature?

Be able to write down some description why something is ignored

Which operating system are you running Bazel on?

macOS, Windows, Ubuntu

What is the output of bazel info release?

8.5.0

Guia do colaborador