Cargo not pulling latest commit from github

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?

cargo update -p this-api

I'll give it a go to see if it works. Thank you.

See also:

1 Like

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...