-
Notifications
You must be signed in to change notification settings - Fork 258
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.." #9900
Comments
though i dont know if its relevant here i are my docker file and docker-compose:
docker-compose:
.env file:
if i add a .cargo/config.toml with the target anywhere outside my project workspace, it seems to work fine
But of course that means anytime i restart/rebuild the container, i have to rebuild the project/binaries. which makes it not seem like a good solution |
Anyone with any advice on how to go about resolving this? |
Does this occur when you use the simple Rust template:
I don't see it with that. |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
Description
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?
Reproduce
cargo new test
cargo build
twice###Version Info
Version: 1.89.1 (user setup)
Commit: dc96b837cf6bb4af9cd736aa3af08cf8279f7685
Date: 2024-05-07T05:13:33.891Z
Electron: 28.2.8
ElectronBuildId: 27744544
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Windows_NT x64 10.0.22621
Dev Containers v0.362.0
Docker Desktop 4.29.0 (145265)
The text was updated successfully, but these errors were encountered: