-
Notifications
You must be signed in to change notification settings - Fork 61
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
[Bazel CI] Log error: 'no such package '@@rules_java//toolchains': BUILD file not found in directory 'toolchains' of external repository @@rules_java' #417
Comments
@ensonic Please take a look if you want to stay compatible with Bazel@HEAD, you may need to upgrade rules_java and ideally migrate to Bzlmod for external deps. |
We're not using rules_java anymore and I am currently in the process of trying to migrate to blzmod. Hopefully done by end of week. |
Not sure about the buildkite setup, but a test dependency is missing in the runfiles this test fails:
but we have adjusted the new layout in the external folder and on our ci the test passes: |
This has been recommened in: https://bazel.build/concepts/dependencies#data-dependencies and hopefully fixes the tests on buildkite, see #417 (comment)
This has been recommened in: https://bazel.build/concepts/dependencies#data-dependencies and hopefully fixes the tests on buildkite, see #417 (comment)
This has been recommened in: https://bazel.build/concepts/dependencies#data-dependencies and hopefully fixes the tests on buildkite, see #417 (comment)
Now with #439 referencing a sh_test data dependency via TESTSRC_DIR we get:
@meteorcloudy do you know why bazel behaves differently on buildkite? |
Probably due to bazelbuild/bazel#23127 You should avoid using the canonical repo name whenever possible, please use the runfiles library to access data file. |
Thanks for the info. I hope we can find a better way. I am reluctant to add 10 lines of yucky shell code to each sh_test. Does bazelbuild/bazel#23127 mean the '~' will change to '+' ? |
Yes, and |
This will hopefully ensure that things don#t fall apart with next version: #417 (comment)
Lets see if #445 helps ... |
Sadly had to revert it, as it was then failing on our CI. Hence we need to update those 3 places when we bump the bazel version again :/ |
CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4122#0191e992-eff8-4964-ae5d-195e882df5b8
Platform: Ubuntu
Logs:
Culprit:
Steps:
CC Greenteam @meteorcloudy
The text was updated successfully, but these errors were encountered: