Fredrik Park
Fredrik Park
Hmm, it would be nice to handle it if cargo is available though, or at least give a better error indicating what is wrong.
I can't say when/if I will have time to pick it up but if you write some instructions I will try to find some time for it :+1:
I did an attempt at fixing this but it seems to me that it boils down to an issue in the rustc cli (I can't set out-dir in our specific...
Here is an example of the error from my debugging session. ```bash [sqlx-cli/src/prepare.rs:154] Command::new(&cargo).arg("rustc").args(cargo_args).arg("--").arg("--out-dir").arg(format!("{}", metadata.target_directory.join("sqlx").display())).arg("--emit").arg("dep-info,metadata").arg("--cfg").arg(format!("__sqlx_recompile_trigger=\"{}\"", SystemTime :: UNIX_EPOCH.elapsed() ?.as_millis())).env("SQLX_OFFLINE", "false").env("DATABASE_URL", url) = "/home/sedrik/.cargo/bin/cargo" "rustc" "--lib" "--all-features" "--" "--out-dir" "/home/sedrik/.cargo/target/sqlx" "--emit"...
I ran into a related issue in regards to `uri!`` today and leaving this as a note here after discussion in the rocket chat. Doing `let url = uri!(verify_email(user_id, code));`...
Just tried and the calls works if it is done in the same file as the endpoint. ```rust #[get("/health")] pub fn health() -> &'static str { println!("{}", uri!(health())); "ok" }...
I see, if there is no good path to lift the restriction for now maybe the documentation for the old `route!` could be applied to `url!` then? If you want...
Hi just wanted to chime in that I tested a setup like this and locally I still need to rebuild all the deps when I use buildkit's caching. Was that...
Hmm, ok. I guess I did something wrong in my setup when testing. The question then becomes if it is enough to just cache /var/lib/docker/buildkit or something more fancy needs...
I ended up doing this based on an article I found. https://medium.com/titansoft-engineering/docker-build-cache-sharing-on-multi-hosts-with-buildkit-and-buildx-eb8f7005918e It seems to work but I still get the feeling that it sometimes does a complete rebuild but...