https://linen.dev logo
Possible to use git ssh for Cargo dependency on de...
# help
d
Hi all! In the Cargo file of my project, I'm using a package by its git link because I need a feature that is not yet in its newest release. (I'm actually referring to shuttle: the
bot-poise
feature of shuttle is implemented by Anafabula and merged in only yesterday here: https://github.com/shuttle-hq/shuttle/pull/560) I can put HTTPS git link for shuttle:
Copy code
shuttle-service = { git = "https://github.com/shuttle-hq/shuttle.git", features = ["bot-poise"] }
but the shuttle repo itself refers to a submodule
examples
by SSH link, and this makes deployment fail because it cannot clone the submodule. Is there any way I can make cloning over ssh work or bypass it? (Is it possible to use shuttle that is not 0.8 in deployment at all?) Thanks a lot!
k
Hey! 👋 Hmm, no that should not be possible. The project container will check that the crate is being built with the correct version of shuttle-service.
You could start working on it locally by forking and cloning the repository, and following the steps in our contributing.md guide (you don't have to start the infra locally either, you could do
cargo run --bin cargo-shuttle --manifest-path=<path to shuttle repo> -- run
, with an override in the shuttle repo to use the local version of shuttle-service).
We are planning to release the poise support this week, so if everything goes according to plan you won't have to wait long 😄
d
Sounds very good, I shall
await
😄
thank you!
2 Views