-
Notifications
You must be signed in to change notification settings - Fork 260
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
[Bug]: .cargo/config.toml is not deployed #928
Comments
According to @jonaro00, "hidden" files are not deployed. I suggest to modify the relevant logic to include "hidden" default files/directories like |
Looking at As |
Yeah, you're right. I misremembered. |
This sparked an idea: #930 |
I tried locally and in my case at least the |
@jonaro00, using macOS on M1 (ARM64) as given in the description. The
@imor, the link and tag to the project are given above: https://github.com/hseeberger/ticklist/releases/tag/shuttle-issue-928. Make sure to use the tag |
Sorry @hseeberger missed the link in the description. I also ran into the same problem. The project builds locally for me but when deployed it fails because of missing |
Are you both using Rust 1.69? Deployment uses 1.68. I didn't see anything related to this but it is after all a source of errors, so just double checking. |
Yes, I'm on 1.69. |
@jonaro00, I was on 1.69, but I installed 1.68(.2) and the behavior is exactly the same, i.e. |
I setup a dev environment of shuttle locally and was able to capture the rustc command run by the deployer. I also extracted the rustc command when I built this project manually from the command line. Here they are: From deployer:
When built locally:
(Sorry for the long horizontal scroll) The only significant difference between them is the |
Hey @imor, thanks a lot for investigating! I am currently also trying to set up a local dev environment, but as I am a Shuttle newbie, this is taking some time ;-) Yes, Hence I assume that the deployer does not use cargo, but instead tries to do the same thing. If that is the case, then considering the cargo configuration options seems to be missing. |
The deployer uses the same function in the builder crate as local run, and it uses cargo (as a lib) internally (it will soon use the hosts installed cargo instead). |
Shuttle uses a "global" Cargo configuration (i.e. I ran into pretty much the same issue and ended up forking the |
It would be interesting though if there was a With the boundary gone, Shuttle should be much more flexible and introducing something like that should cause little-to-no problems IMO |
Thank you for the great summary! Yes, I also think this should be possible to implement now. I like the suggestion of using Shuttle.toml for this, then we just need to sort out how we will write them to the cargo config (or even passing them as args when building the project binary?). |
What if the global cargo config in Shuttle was instead injected into any existing user's cargo config (or created if not present)? |
@hseeberger This should be possible in 0.27 🤞, haven't verified. |
What happened?
While working on an example app, I found out that
.cargo/config.toml
is not deployed. Yet this is needed to successfully compile, because the app is using uuid v7 which requires setting specific rustflags and that by default happens in.cargo/config.toml
.More details can be found at https://discord.com/channels/803236282088161321/1109452835214590123.
To reproduce the issue, use tag shuttle-issue-928: https://github.com/hseeberger/ticklist/releases/tag/shuttle-issue-928.
Version
0.16.0
Which operating systems are you seeing the problem on?
macOS
Which CPU architectures are you seeing the problem on?
ARM64
Relevant log output
No response
Duplicate declaration
The text was updated successfully, but these errors were encountered: