Skip to content

Commit

Permalink
fixed unrecognized options by bazel mod command (#6756)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeFrosch authored Sep 12, 2024
1 parent f83e403 commit 02ad803
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 02ad803

Please sign in to comment.