Skip to content

Installing older channel over newer channel results in zsh Killed scenario #622

@AliveDevil

Description

@AliveDevil

Repro:

dotnet-install.sh --channel 9.0 --version 9.0.303
dotnet --help
dotnet-install.sh --channel 8.0 --version 8.0.412
dotnet --help
zsh: killed dotnet --help

Don't unconditionally unpack the downloaded sdk files, when a newer Sdk is already installed.

The .NET 8 ~/.dotnet/dotnet-binary is incompatible with e.g. .NET 9 Sdk 9.0.303, but installing .NET 8 over .NET 9 results in dotnet-install naively overwriting the newer dotnet-binary, bricking the installation.

Versions listed above for demonstration purposes, I just happen to have experienced this issue with these two versions.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions