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
The autoupdate script uses bazel run //toolchain/testing:file_test --autoupdate, which runs in a non-hermetic mode that can see files left behind in bazel-bin/.... This causes some strange failures. To reproduce:
Add a .carbon file to core/prelude/
Run autoupdate, or build the driver, or run the tests. This causes the file to be copied into bazel-bin/toolchain/install/prefix_root.
Remove the .carbon file again
Rerun autoupdate
Result: when scanning for prelude files, the file in prefix_root is found. But then when running tests, the prelude is loaded from the top of the workspace instead, and the .carbon file is not found. Net result: all the non-no_prelude tests fail with an "No such file or directory" error.
The text was updated successfully, but these errors were encountered:
The autoupdate script uses
bazel run //toolchain/testing:file_test --autoupdate
, which runs in a non-hermetic mode that can see files left behind inbazel-bin/...
. This causes some strange failures. To reproduce:bazel-bin/toolchain/install/prefix_root
.Result: when scanning for prelude files, the file in prefix_root is found. But then when running tests, the prelude is loaded from the top of the workspace instead, and the .carbon file is not found. Net result: all the non-no_prelude tests fail with an "No such file or directory" error.
The text was updated successfully, but these errors were encountered: