bazelbuild/bazel

Add support for comments in .bazelignore files

Open

#19.821 geöffnet am 15. Okt. 2023

Auf GitHub ansehen
 (0 Kommentare) (1 Reaktion) (0 zugewiesene Personen)Java (4.465 Forks)batch import
P2help wantedteam-OSStype: feature request

Repository-Metriken

Stars
 (25.384 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 22T 20h) (77 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide