bazelbuild/bazel

Add support for comments in .bazelignore files

Open

#19,821 创建于 2023年10月15日

在 GitHub 查看
 (0 评论) (1 反应) (0 负责人)Java (4,465 fork)batch import
P2help wantedteam-OSStype: feature request

仓库指标

Star
 (25,384 star)
PR 合并指标
 (平均合并 22天 20小时) (30 天内合并 77 个 PR)

描述

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

贡献者指南