-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail on inapplicable flags on non-common commands expanded from configs #23105
Conversation
0146e48
to
da25a03
Compare
da25a03
to
1845f82
Compare
src/main/java/com/google/devtools/common/options/OptionsParserImpl.java
Outdated
Show resolved
Hide resolved
if (!args.isEmpty() && args.get(0).startsWith("@")) { | ||
public List<ArgAndFallbackData> preProcess(List<ArgAndFallbackData> args) | ||
throws OptionsParsingException { | ||
if (!args.isEmpty() && args.getFirst().arg.startsWith("@")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you can use getFirst()
in this file given the java 11 thing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This actually doesn't break CI since the bootclasspath is determined by the Java runtime version, not the language level. But it would break the consumers that legitimately build with a JDK 11, so good catch on your part.
@cushon @hvadehra Since this is coming up in Bazel code, what do you think of reinvigorating bazelbuild/rules_java#182?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I won't take credit, a breakage popped up when I imported.
src/main/java/com/google/devtools/common/options/OptionsParserImpl.java
Outdated
Show resolved
Hide resolved
src/main/java/com/google/devtools/common/options/OptionsParser.java
Outdated
Show resolved
Hide resolved
1b3b4f5
to
83366ed
Compare
src/main/java/com/google/devtools/build/lib/runtime/ConfigExpander.java
Outdated
Show resolved
Hide resolved
@bazel-io fork 7.3.0 |
This regressed in bazelbuild@44d3953. Fixes bazelbuild#22980 Closes bazelbuild#23105. PiperOrigin-RevId: 657276908 Change-Id: If2e88455a344082bfbec405c30c148c0d044adb6
This regressed in bazelbuild@44d3953. Fixes bazelbuild#22980 Closes bazelbuild#23105. PiperOrigin-RevId: 657276908 Change-Id: If2e88455a344082bfbec405c30c148c0d044adb6
This regressed in 44d3953.
Fixes #22980