Skip to content

Not needed runtime is being downloaded and installed #642

Open
@alienghub

Description

@alienghub

Description:
Downloads and installs not needed runtime

Task version:
4.3.1

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Repro steps:

      - name: Setup .NET
        uses: actions/setup-dotnet@v4
        with:
          dotnet-version: '9.0.203'

Expected behavior:
Tested host has .NET SDK installed:
9.0.203 [C:\Program Files\dotnet\sdk]

Either of these two runtimes on the tested host get used:
Microsoft.NETCore.App 9.0.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

Actual behavior:
dotnet-install: Downloaded file https://builds.dotnet.microsoft.com/dotnet/Runtime/8.0.16/dotnet-runtime-8.0.16-win-x64.zip size is 33292304 bytes.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions