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?

貢獻者指南