-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Cargo must be invoked twice in order to observe changes to a binary dependency #10527
Closed
Tracked by
#10061
Comments
2 tasks
For anyone else hitting this issue, note that you can work around it via a top-level build script that contains the following: println!("cargo:rerun-if-changed=directory_where_binary_dependency_lives"); |
bstrie
added a commit
to bstrie/enarx
that referenced
this issue
Apr 7, 2022
This works around the bug reported at rust-lang/cargo#10527 Signed-off-by: bstrie <[email protected]>
enarxbot
pushed a commit
to enarx/enarx
that referenced
this issue
Apr 7, 2022
This works around the bug reported at rust-lang/cargo#10527 Signed-off-by: bstrie <[email protected]>
4 tasks
Was this fixed already? I can't reproduce it anymore, both binaries are being rebuilt on my first
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
For convenience I have also uploaded the failing code here: https://github.com/bstrie/bindeperror3
For the following code:
Let us first run the code:
Observe what happens if we make a change to mybindep:
And then run the code again:
Observe that while mybindep has been rebuilt, mycrate has not been rebuilt. We see that the hashed output of the mybindep binary as printed by mycrate is exactly the same as the first time, confirming that mycrate has not been rebuilt to include the new build of mybindep.
Now, without making any changes, immediately run the command again:
Now we see that mycrate has been rebuilt, and the different hash confirms that my crate is now observing the changed mybindep.
cc @Byron
Version
The text was updated successfully, but these errors were encountered: