-
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
fix zip64_test to work with absolute $(JAVABASE) #8034
Conversation
Tested with an absolute $(JAVABASE) and --(no)legacy_external_runfiles. Progress towards bazelbuild#8033
src/tools/singlejar/zip64_test.sh
Outdated
@@ -53,7 +53,15 @@ else | |||
fi | |||
|
|||
singlejar="$(rlocation "io_bazel/src/tools/singlejar/singlejar${EXE_EXT}")" | |||
jartool="$(rlocation "local_jdk/bin/jar${EXE_EXT}")" | |||
javabase="$1" | |||
if [[ $javabase = /* ]]; then |
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.
Code assumes $1
is Unix-style path. What about Windows paths?
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 am happy to add a code snippet for Windows to this change if you tell me what I should add :-). I don't think it's a necessary part of this PR though.
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.
if [[ $javabase = /* || $javabase =~ [A-Za-z]:[/\\] ]]; then
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.
thanks! done
Tested with an absolute $(JAVABASE) and --(no)legacy_external_runfiles. Progress towards bazelbuild#8033 Closes bazelbuild#8034. PiperOrigin-RevId: 243604034
Tested with an absolute $(JAVABASE) and --(no)legacy_external_runfiles.
Progress towards #8033