Skip to content
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

crates_universe does not rerun when Cargo.* files change #3216

Open
gferon opened this issue Jan 29, 2025 · 1 comment
Open

crates_universe does not rerun when Cargo.* files change #3216

gferon opened this issue Jan 29, 2025 · 1 comment

Comments

@gferon
Copy link
Contributor

gferon commented Jan 29, 2025

I ran across this issue in our CI setup, where the Bazel daemon is running from a previous build. It turns out that when using a combination of Bazel 8.0.1 and rules_rust 0.57.1, changes to Cargo.toml and Cargo.lock files listed in crate.from_cargo are not picked up.

I made a very simple example repo here to show the problem in action: https://github.com/gferon/rules_rust_no_refresh_bug (see the ./build-refresh-build.sh script at the root).

@gferon
Copy link
Contributor Author

gferon commented Feb 3, 2025

This also happens when switching branches with git.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant