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

Open Beginner friendly
#686 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
bash
Domain
cli

Research direction

Start in dotnet-install.sh by tracing channel validation and the path reached by bash dotnet-install.sh -c 10 --verbose. Compare the existing help text with the resulting error and verify the unsupported one-part channel no longer triggers a 404 attempt. Done means the output explains the supported formats and suggests using a two-part channel such as 10.0.

Written by the indexing model from the issue text.

Description

up-for-grabs

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 dotnet-install.sh -c 10 --verbose
# output is unclear, attempted downloads fail with 404

Expected:

  • Clear error about channel format and workaround.
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 CLI issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.