Install scripts don't attempt to install when the runtime specific binaries are present but not the `dotnet` executable

Open
#552 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
64/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
powershell, shell
Domain
devops

Research direction

Start with dotnet-install.sh and reproduce the reported behavior using the commands in the issue, both before and after removing the dotnet executable from idir. Trace the existing installed-runtime check; done means a missing dotnet or dotnet.exe causes the script to attempt recovery rather than report that the runtime is already installed.

Written by the indexing model from the issue text.

Description

devkit-related up-for-grabs

https://github.com/dotnet/vscode-dotnet-runtime/issues/2059#issuecomment-2516628176

Install scripts could check that dotnet.exe / dotnet is present in the directory before deciding whether to install or report that it's already installed.

ls idir
LICENSE.txt  ThirdPartyNotices.txt  dotnet  host  shared
./dotnet-install.sh --install-dir idir/ --runtime aspnetcore
dotnet-install: ASP.NET Core Runtime with version '8.0.11' is already installed.

rm idir/dotnet
./dotnet-install.sh --install-dir idir/ --runtime aspnetcore
dotnet-install: ASP.NET Core Runtime with version '8.0.11' is already installed.

This change would enable a recovery from a corrupted install by using the same command again.

Dominant language
PowerShell
Stars
213
Forks
120
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dotnet/install-scripts

All issues in dotnet/install-scripts

Similar issues

More DevOps issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.