[Bug]: Can't update git-versioning based crates on shuttle #1333
Labels
S-Investigation
This issue needs further investigation or design to figure out a solution
T-Bug
Something isn't working
What happened?
Description
I'm facing a deployment issue with Rust and Shuttle. I'm developing an Axum server that serves output from an external library that uses git-based versioning. When I run cargo update locally, it updates the git-based crates to the latest commit, which is what I want. However, when deploying using Shuttle, the commit heads of the crates seem to remain pinned to the initial deployment's commit, unless there is an actual version change in the library.
I tried using
cargo shuttle clean
and made sure the Cargo.lock is updated, but the issue persists. I've discussed this in Discord and we suspect it might be a caching issue, but we're not sure how to resolve it.Is there a way to force Shuttle to update git-based crates to the latest commit during deployment?
How can I ensure that my deployed server uses the latest version of the library with git-based versioning?
Any insights or advice on how to resolve this issue would be greatly appreciated.
Ongoing Discord Discussion: https://discord.com/channels/803236282088161321/1165786552392224799
Steps to reproduce
Here are the steps to reproduce the bug on your local system
Fork https://github.com/zenlang-rs/zen-lang
Now, go back and run these commands
Now, again redeploy
Extra Info
Expected Output : https://zenlang.shuttleapp.rs/api/health should have given version to be
testv3
for Compiler Version (based on the one in zen-lang repo in lib)Version
v0.29.1
Which operating system(s) are you seeing the problem on?
In deployment
Which CPU architectures are you seeing the problem on?
In deployment
Relevant log output
No response
Duplicate declaration
The text was updated successfully, but these errors were encountered: