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
I have a workaround, but I imagine this will be unexpected for other users. Is there a good way to fix this without explicitly opting out via build settings?
There isn't another way to "fix" this without using a flag. The flag exists so users who are updating rules_rust but not updating Bazel can continue to use the repo as they were before. And at some point in the future, the flag will be removed, thus communicating the newest release of rules_rust at that time requires a newer version of Bazel. I can maybe agree flipping the flag was done a bit earlier than needed but I think this is an effective way to provide forward and backward compatibility. Is there another method you would prefer?
I think an explicit check somewhere that bazel is >= v6.3.0, with an informative error message, like
rules_rust requires bazel to be on at least v6.3.0; if you cannot upgrade, pass in --@rules_rust//rust/settings:experimental_use_coverage_metadata_files=false as a flag
would be helpful. This was a fairly mysterious error when I encountered it.
Activity
ryanpbrewster commentedon Sep 1, 2023
Ah, I dug around and saw this PR #2000 which hinted towards
which fixes the issue I'm running into
I have a workaround, but I imagine this will be unexpected for other users. Is there a good way to fix this without explicitly opting out via build settings?
UebelAndre commentedon Sep 4, 2023
There isn't another way to "fix" this without using a flag. The flag exists so users who are updating
rules_rustbut not updating Bazel can continue to use the repo as they were before. And at some point in the future, the flag will be removed, thus communicating the newest release ofrules_rustat that time requires a newer version of Bazel. I can maybe agree flipping the flag was done a bit earlier than needed but I think this is an effective way to provide forward and backward compatibility. Is there another method you would prefer?#2082 is the tracking issue for the flag.
ryanpbrewster commentedon Sep 4, 2023
I think an explicit check somewhere that bazel is >= v6.3.0, with an informative error message, like
would be helpful. This was a fairly mysterious error when I encountered it.
ibigbug commentedon Sep 7, 2023
getting a similar but different error?
Revert "Flip experimental_use_coverage_metadata_files" (#2164)