Skip to content
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

Support Bazel 5 #156

Merged
merged 4 commits into from
Jan 8, 2024
Merged

Support Bazel 5 #156

merged 4 commits into from
Jan 8, 2024

Conversation

kon72
Copy link
Contributor

@kon72 kon72 commented Jan 7, 2024

This change supports Bazel 5.
Please see the commit message in each commit for details.

Fixes #153

This flag is only available in Bazel >= 6.1.0.
…ey're not supplied from aquery output

In Bazel < 6.1.0, aquery doesn't provide environment variables.
See hedronvision#154 for more context.
Since `repository_name()` already contains leading `@`, we don't need to prefix it with `@`.
Previously, it would produce double at-sign `@@` addressing [canonical repository name](https://bazel.build/external/overview#canonical-repo-name) which is a syntax introduced in Bazel 6.0, so it failed to run aquery command on Bazel < 6.0.
@cpsauer
Copy link
Contributor

cpsauer commented Jan 8, 2024

Thanks so much for doing, Kon.

(Doubly good catch on the @. I think maybe at the time it was originally written, it wasn't included in the repo name, but maybe not.)

@cpsauer cpsauer merged commit f41ec09 into hedronvision:main Jan 8, 2024
2 checks passed
@cpsauer
Copy link
Contributor

cpsauer commented Jan 8, 2024

Again, really appreciate your being so excellent to work with. Thanks for your contributions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--host_features=compiler_param_file need bazel >= 6.1.0
2 participants