actions / actions/setup-dotnet
Not needed runtime is being downloaded and installed
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 572
- Avg merge
- 12d 20h
- Merged PRs (30d)
- 1
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the actions/setup-dotnet@v4 entry point and trace how the requested .NET SDK version is checked against installed SDKs and runtimes. Reproduce the shown workflow on Ubuntu, macOS, and Windows, then verify that an installed 9.0.203 SDK and its available runtimes no longer trigger a download of Runtime 8.0.16.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, typescript
- Domain
- ci-cd, devops, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100