-
Notifications
You must be signed in to change notification settings - Fork 434
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
Restore lost "is_absolute" #2922
Conversation
`is_absolute` was lost for "=" case in bazelbuild#2911 Fixes bazelbuild#2917
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! Don’t mean to burden you after dealing with the regression but Is this something that can be regression tested?
I am not sure how to do that in reasonable way. Looks like there is no a single test which fail if I "return []" from _pwd_flags. I am very new to this code, could you please suggest which test could be the likely example for requested test? |
Follow up to bazelbuild#2922. Before bazelbuild#2922 the only possible "else" with "opt" was space separated flags. Now we get there for already `is_absolute` path.
This reverts commit 2a85e13.
##### [`v0.52.2](https://github.com/bazelbuild/rules_rust/releases/tag/0.52.2) ### 0.52.2 #### Bzlmod ```python bazel_dep(name = "rules_rust", version = "0.52.2") ``` #### WORKSPACE ```python load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_rust", integrity = "sha256-Zx3bP+Xrz53TTQUeynNS+68z+lO/Ye7Qt1pMNIKeVIA=", urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.52.2/rules_rust-v0.52.2.tar.gz"], ) ``` Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup #### What's Changed - Restore lost "is_absolute" by [@vitalybuka](https://github.com/vitalybuka) in bazelbuild/rules_rust#2922 - Revert [#2911](bazelbuild/rules_rust#2911) and [#2922](bazelbuild/rules_rust#2922) by [@UebelAndre](https://github.com/UebelAndre) in bazelbuild/rules_rust#2925 **Full Changelog**: bazelbuild/rules_rust@0.52.1...0.52.2
##### [`v0.52.2](https://github.com/bazelbuild/rules_rust/releases/tag/0.52.2) ### 0.52.2 #### Bzlmod ```python bazel_dep(name = "rules_rust", version = "0.52.2") ``` #### WORKSPACE ```python load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_rust", integrity = "sha256-Zx3bP+Xrz53TTQUeynNS+68z+lO/Ye7Qt1pMNIKeVIA=", urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.52.2/rules_rust-v0.52.2.tar.gz"], ) ``` Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup #### What's Changed - Restore lost "is_absolute" by [@vitalybuka](https://github.com/vitalybuka) in bazelbuild/rules_rust#2922 - Revert [#2911](bazelbuild/rules_rust#2911) and [#2922](bazelbuild/rules_rust#2922) by [@UebelAndre](https://github.com/UebelAndre) in bazelbuild/rules_rust#2925 **Full Changelog**: bazelbuild/rules_rust@0.52.1...0.52.2
Existing test passes with bazelbuild#2911 and bazelbuild#2922. However even bazelbuild#2922 was breaking something. I suspect case like this is the cause.
Existing test passes with bazelbuild#2911 and bazelbuild#2922. However even bazelbuild#2922 was breaking something. I suspect case like this is the cause.
This reverts commit 7890b42.
Existing test passes with bazelbuild#2911 and bazelbuild#2922. However even bazelbuild#2922 was breaking something. I suspect case like this is the cause.
Existing test passes with bazelbuild#2911 and bazelbuild#2922. However even bazelbuild#2922 was breaking something. I suspect case like this is the cause.
#2931 added tests for _pwd_flags, however the test as-is passes with #2911 and #2922, which still caused problems and reverted. Here I introduce a test case for likely unfixed in reverted #2925. The test needs strictter check for cflags. As-ls `flag in cflags` is a just substring search and very weak test for abs path. For #2917
This reverts commit 7890b42.
This reverts bazelbuild#2925 to reland bazelbuild#2911 and bazelbuild#2922, with required fix, the second patch in the PR.
is_absolute
was lost for "=" case in #2911Fixes #2917