-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
vscode rust devcontainer: cargo build resulting in "failed to link or copy #13905
Comments
Could you fill in each section of the issue template? A clear minimal reproducible example helps debugging. Also, please provide the output of |
though i dont know if its relevant here i are my docker file and docker-compose:
docker-compose:
.env file:
|
done..let me know what else is needed. ive also added the dockerfile and docker-compose file im using. |
As per this discussion: https://stackoverflow.com/questions/72448053/rust-incremental-build-not-working-in-vscode-devcontainer if i add a .cargo/config.toml with the target anywhere outside my project workspace, it seems to work fine
But why? this of course isn't helpful given that that path outside the workspace is ephemeral storage |
Anyone with any advice on how to go about resolving this? |
Problem
Im not sure if should be reaching out here or vscode for help on this...but i will start here and let me know if im int he wrong location..
i have built a vs code devcontainer based on
mcr.microsoft.com/devcontainers/rust:1-1-bullseye
, running under Docker Desktop on windows 11. I am able to run a basic example using this without any dependenciesi have the following structure (Note: the target and Cargo.lock do not exist until after i attempt a
cargo build
:My toml looks like this:
when i do
Cargo build
or run from command line, i see this:i checked these folders and they are all r/w.
What am i doing wrong?
Steps
cargo new test
cargo build
twicePossible Solution(s)
I dont know yet
Notes
No response
Version
rustc 1.78.0 (9b00956e5 2024-04-29)
cargo 1.78.0 (54d8815 2024-03-26)
vscode ➜ /workspaces/aipg_client $ cargo -vV
cargo 1.78.0 (54d8815 2024-03-26)
release: 1.78.0
commit-hash: 54d8815
commit-date: 2024-03-26
host: x86_64-unknown-linux-gnu
libgit2: 1.7.2 (sys:0.18.2 vendored)
libcurl: 8.6.0-DEV (sys:0.4.72+curl-8.6.0 vendored ssl:OpenSSL/1.1.1w)
ssl: OpenSSL 1.1.1w 11 Sep 2023
os: Debian 11 (bullseye) [64-bit]
vscode ➜ /workspaces/aipg_client $ cat /etc/debian_version
11.9
docker desktop v4.29.0
No response
The text was updated successfully, but these errors were encountered: