dotnet / dotnet/install-scripts

Improve output for unsupported one-part channel in dotnet-install.sh

Open
#686 0 comments 2 reactions 0 assignees View on GitHub
up-for-grabs
Dominant language
PowerShell
Stars
213
Forks
120
PR merge metrics
No merged PRs in 30d

Description

When a one-part channel (e.g. `-c 10`) is specified for dotnet-install.sh, the script attempts to resolve it and fails with unclear messaging. The output currently attempts to download files for the one-part channel, leading to a confusing 404 error. The script help text specifies that channels must be 'STS', 'LTS', a two-part version (A.B), or a three-part SDK band (A.B.Cxx), but this expectation isn't reflected in the error message.

Request:
- Detect if a one-part channel is given and update the output to indicate it is not valid.
- Make the error message clear about supported channel formats and provide a suggested workaround (e.g. use `-c 10.0`).

This will help users avoid confusion and parallels a similar situation described in issue #685 (and previously #461).

Repro:
```bash
bash dotnet-install.sh -c 10 --verbose
# output is unclear, attempted downloads fail with 404
```

Expected:
- Clear error about channel format and workaround.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.