Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Rust Remote Container /usr/local/cargo Ownership Issue #1606

Closed
@andar1an

Description

@andar1an

/usr/local/cargo may require recursive vscode user ownership to be able to save new crates into the directory. I get a Spurious Network Error if vscode is not the user. I just manually ran chown -R vscode:rustlang /usr/local/cargo to bypass issue.

  • VSCode Version: 1.70.2
  • Local OS Version: Windows_NT x64 10.0.22000
  • Reproduces in: Remote - Containers - have not tried codespaces
  • Name of Dev Container Definition with Issue: Rust

Steps to Reproduce:

  1. Set up a Remote Container using available scripts and dockerfiles: https://github.com/microsoft/vscode-dev-containers/tree/v0.195.0/containers/rust
  2. Use a project that requires a crate such as rand: https://crates.io/crates/rand
  3. Build project. Spurious Network Error may result due to a lack of ownership of /usr/local/cargo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions