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

Fix cargo_bootstrap_repository not triggering on changes to srcs #959

Merged
merged 6 commits into from
Oct 11, 2021

Conversation

UebelAndre
Copy link
Collaborator

The original intent of srcs was so that the cargo_bootstrap_repository rule would correctly be triggered on changes to the crate being bootstrapped. However, unless the files passed to srcs is consumed somehow, the repository rule will not be re-run. The change here fixes this issue by using repository_ctx.path to mark all srcs as tracked.

Copy link
Collaborator

@illicitonion illicitonion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me - thanks!

cargo/cargo_bootstrap.bzl Outdated Show resolved Hide resolved
cargo/cargo_bootstrap.bzl Outdated Show resolved Hide resolved
@UebelAndre UebelAndre merged commit 8d7a3c0 into bazelbuild:main Oct 11, 2021
@UebelAndre UebelAndre deleted the cargo branch October 11, 2021 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants