I have the following dependency that pulls from a private github repo:
this-api = { git = "ssh://git@github.com/bmt/api.git", package = "this-api", branch = "this-branch" }
We can get Cargo to pull a specific build using rev instead of branch. However, this is not a satisfying solution. How can we get Cargo to simply pull the latest from the specified branch?
I'll give it a go to see if it works. Thank you.
lomac:
cargo update -p this-api
Thank you for the link. I had read through the Cargo docs... the article was helpful.
The answer if all works as expected:
cargo update this-api
should force the lock file to re-download and compute a new hash...
system
Closed
January 18, 2026, 4:04pm
6
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.