Skip to content
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

dotnet tool install needs a --force switch #33246

Open
heaths opened this issue Jun 14, 2023 · 1 comment
Open

dotnet tool install needs a --force switch #33246

heaths opened this issue Jun 14, 2023 · 1 comment
Milestone

Comments

@heaths
Copy link

heaths commented Jun 14, 2023

Is your feature request related to a problem? Please describe.

dotnet tool install really needs a --force switch to say "do it regardless of what's installed.

Despite the old thread about this, separate install and update commands for dotnet tool aren't useful on CI agents where a particular version - or none - are installed. As a pipeline author, you always have to either scaffold and manage a .config/dotnet-tools.json file - particular problematic in a monorepo - or have your pipeline conditionally run dotnet tool install or dotnet tool update in case an older version (or even newer) is present. This is a huge burden when getting and keeping pipelines working is one of the hardest duties in modern development (no practical dev loop rather than try and try again).

Describe the solution you'd like

dotnet tool install --force should install whatever version (or latest) you specify regardless of whether a tool is installed.

Additional context

See thread for more context. A dotnet tool upgrade does not sufficiently supersede dotnet tool install --force.

@JL03-Yue
Copy link
Member

#35088 Aim to address this scenario

@JL03-Yue JL03-Yue removed the untriaged Request triage from a team member label Oct 20, 2023
@JL03-Yue JL03-Yue added this to the 8.0.2xx milestone Oct 20, 2023
@marcpopMSFT marcpopMSFT modified the milestones: 8.0.2xx, 8.0.4xx Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants