-
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
Files added to runfiles are not visible with BwtB #20099
Comments
There are a couple of odd things going on here, and I'm not sure that any of them are Bazel's fault. It appears that you're invoking
I don't know why That brings us to another problem, which is that
So my suggestion would be to (1) mark As to why you're only running into this now: as it currently stands, your |
Thanks @tjgq for your comment, that is very useful. Will forward this to the rules_scala issue. |
Closing this issue, as it seems to be a non-hermetic issue in rules_scala itself. Thanks once more! |
Description of the bug:
I have an example repo with rules_scala:
https://github.com/gergelyfabian/bazel-scala-example/ (check out bazel-7.0.0rc2 branch)
If I run a target to check scalafmt there, it will fail with BwtB (please note, that disk cache is turned on in this repo):
I have added some debugging code to rules_scala on branch:
https://github.com/gergelyfabian/rules_scala/tree/bazel-7.0-scalafmt-bug
I think that rules_scala is setting up DefaultInfo properly for this target.
Quoting from the rules_scala discussion bazelbuild/rules_scala#1525 (comment)
---- Quote -----
Having https://github.com/bazelbuild/rules_scala/blob/master/scala/private/phases/api.bzl#L91 (that sets up the final rule output):
I have added a debug line just before that:
This prints for me:
So, this includes the files that I think should be there, specifically:
Maven.scala.fmt.output
----- End of Quote -----
If the DefaultInfo is set up properly, then the file should be accessible I guess.
This is reproducible both with Bazel 6.4.0 and 7.0.0rc2, when the
--remote_download_toplevel
flag is turned on (but with 7.0.0rc2 BwtB is enabled by default).Which category does this issue belong to?
Rules API
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Which operating system are you running Bazel on?
Ubuntu 22.04
What is the output of
bazel info release
?release 7.0.0rc2
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?No response
Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.
Ran Bazelisk with bisect and found commit: 9c96529, where BwtB was enabled by default.
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
Related rules_scala issue: bazelbuild/rules_scala#1525
The text was updated successfully, but these errors were encountered: