Skip to content

Commit

Permalink
fixed unrecognized options by bazel mod command (#6756)
Browse files Browse the repository at this point in the history
(cherry picked from commit 02ad803)
  • Loading branch information
LeFrosch authored and mai93 committed Sep 23, 2024
1 parent af3b645 commit e4ba7f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion base/src/com/google/idea/blaze/base/command/BlazeFlags.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ public static List<String> blazeFlags(
for (BuildFlagsProvider buildFlagsProvider : BuildFlagsProvider.EP_NAME.getExtensions()) {
buildFlagsProvider.addBuildFlags(project, projectViewSet, command, invocationContext, flags);
}
flags.addAll(expandBuildFlags(projectViewSet.listItems(BuildFlagsSection.KEY)));
if (command != BlazeCommandName.MOD) {
flags.addAll(expandBuildFlags(projectViewSet.listItems(BuildFlagsSection.KEY)));
}
if (invocationContext.type() == ContextType.Sync) {
for (BuildFlagsProvider buildFlagsProvider : BuildFlagsProvider.EP_NAME.getExtensions()) {
buildFlagsProvider.addSyncFlags(
Expand Down

0 comments on commit e4ba7f0

Please sign in to comment.