You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A consecutive bazel build <target> will run without action cache as well.
This behavior isn't really surprising, as described in several Bazel tickets - i.e bazelbuild/bazel#13591
but as Cargo manages to re emit errors in json format without recompiling the project, I seek your advice.
In our use case we setup Rust analyzer to run a custom cargo check command that uses the --error-format=json flag. This results in consecutive builds with and without this flag. We edit code, Rust analyzer runs bazel build --error-format=json, than we run the tests without the --error-format=json flag. This results in a very cache inefficient workflow
The text was updated successfully, but these errors were encountered:
In there, if you always run with the "save output" flag, you can reuse your cache and also get normal human readable error messages. I'd hope saving the output from rustc is not heavyweight enough to affect compilation times.
It's still not ready to be used yet though, as I described in the PR.
Running
bazel build <target>
followed bybazel build --error-format=json <target>
will discard analysis cache and action cache:(from build command log)
(From bazel explain log)
A consecutive
bazel build <target>
will run without action cache as well.This behavior isn't really surprising, as described in several Bazel tickets - i.e bazelbuild/bazel#13591
but as Cargo manages to re emit errors in json format without recompiling the project, I seek your advice.
In our use case we setup Rust analyzer to run a custom cargo check command that uses the
--error-format=json
flag. This results in consecutive builds with and without this flag. We edit code, Rust analyzer runsbazel build --error-format=json
, than we run the tests without the--error-format=json
flag. This results in a very cache inefficient workflowThe text was updated successfully, but these errors were encountered: