bazelbuild/bazel

Duplicate --config=foo produces a seemingly pointless warning

Open

#11,592 创建于 2020年6月15日

在 GitHub 查看
 (7 评论) (0 反应) (0 负责人)Java (4,465 fork)batch import
P3help wantedteam-Configurabilityteam-Documentationtype: documentation (cleanup)

仓库指标

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

描述

As of Bazel 3.2.0, if you have build --config=foo in multiple places (like .bazelrc and ~/.bazelrc), bazel build produces the following warning:

WARNING: The following configs were expanded more than once: [foo]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior.

It's not clear under which scenario --config=foo may be "repeatable" or produce "unexpected behavior". To my understanding, such a thing cannot happen, and hence the warning seems like a bug. There does not appear to be any conflict in the requested flags. Could the warning be removed?

贡献者指南