Skip to content

rustup causes rustc invocation to automatically download toolchain #444

@arpandaze

Description

@arpandaze

Describe the bug

If a rust folder contains rust-toolchain.toml requiring version that isn't installed, rustc --version automatically tries to install the toolchain. So if we quickly open nvim or any other cli program after switching to the folder, contents from stderr is displayed.

Steps to reproduce

  1. Create empty rust project with cargo init
  2. Create rust-toolchain.toml file with content as follows:
    [toolchain]
    # set channel to one that is not installed
    channel = "1.72"
  3. Switch to the directory and open any CLI program like nvim or top.

Screenshots

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions