Skip to content

cargo proxy has corrupted arg0 for rustup v1.28 on cygwin #4239

@moosedoc

Description

@moosedoc

Verification

Problem

Running the cargo command results in rustup being ran.
For example, running cargo build results in receiving the error:

error: invalid value 'build' for '[+toolchain]': error: "build" is not a valid subcommand, so it was interpreted as a toolchain name, but it is also invalid. To override the toolchain using the 'rustup +toolchain' syntax, make sure to prefix the toolchain override with a '+'

For more information, try '--help'.

Uninstalling rust completely, rebooting, then installing rust has no effect.

Steps

Run rustup update
Attempt to build a rust project.

Possible Solution(s)

No response

Notes

RustRover does not seem to be impacted.

Rustup version

rustup 1.28.1 (f9edccde0 2025-03-05)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.85.0 (4d91de4e4 2025-02-17)`

Installed toolchains

Default host: x86_64-pc-windows-msvc
rustup home:  C:\Users\***\.rustup

installed toolchains
--------------------
stable-x86_64-pc-windows-msvc (active, default)

active toolchain
----------------
name: stable-x86_64-pc-windows-msvc
active because: it's the default toolchain
installed targets:
  x86_64-pc-windows-msvc

OS version

Windows 11; terminal

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugnot-rustupWhatever is described in this issue isn't Rustup's fault

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions