Skip to content

rustup has trouble with cygwin #1508

@mcandre

Description

@mcandre

When rustup is executed from a cygwin-like environment such as Git Bash, then it has trouble with file paths:

$ rustup update
info: syncing channel updates for 'stable-x86_64-pc-windows-msvc'
info: latest update on 2018-09-13, rust version 1.29.0 (aa3ca1994 2018-09-11)
info: downloading component 'rustc'
info: downloading component 'rust-std'
info: downloading component 'cargo'
info: downloading component 'rust-docs'
info: removing component 'rustc'
info: removing component 'rust-std'
info: removing component 'cargo'
info: removing component 'rust-docs'
info: installing component 'rustc'
info: installing component 'rust-std'
info: installing component 'cargo'
info: installing component 'rust-docs'
info: syncing channel updates for 'nightly-x86_64-pc-windows-msvc'
info: latest update on 2018-09-16, rust version 1.30.0-nightly (e4ba1d41e 2018-09-15)
info: downloading component 'rustc'
info: downloading component 'rust-std'
info: downloading component 'cargo'
info: downloading component 'rust-docs'
info: removing component 'rustc'
info: removing component 'rust-std'
info: removing component 'cargo'
info: removing component 'rust-docs'
info: installing component 'rustc'
info: installing component 'rust-std'
info: installing component 'cargo'
info: installing component 'rust-docs'
info: checking for self-updates
info: downloading self-update

   stable-x86_64-pc-windows-msvc updated - rustc 1.29.0 (aa3ca1994 2018-09-11)
  nightly-x86_64-pc-windows-msvc updated - rustc 1.30.0-nightly (e4ba1d41e 2018-09-15)

error: could not remove 'setup' file: 'C:\Users\vagrant\.cargo\bin/rustup-init.exe'
info: caused by: Access is denied. (os error 5)

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