bazelbuild/bazel

Add support for comments in .bazelignore files

Open

#19.821 aperta il 15 ott 2023

Vedi su GitHub
 (0 commenti) (1 reazione) (0 assegnatari)Java (4465 fork)batch import
P2help wantedteam-OSStype: feature request

Metriche repository

Star
 (25.384 star)
Metriche merge PR
 (Merge medio 22g 20h) (77 PR mergiate in 30 g)

Descrizione

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

Guida contributor