Skip to content

install-dotnet.sh keeps failing to install .NET 10.0.x on macos-13 image #645

@eXpl0it3r

Description

@eXpl0it3r

Description:
Using actions/setup-dotnet@v4 fails to install .NET 10.0.x on the macos-13 image with the following error:

/Users/runner/work/_actions/actions/setup-dotnet/v4/externals/install-dotnet.sh --skip-non-versioned-files --channel 10.0
/Users/runner/work/_actions/actions/setup-dotnet/v4/externals/install-dotnet.sh: line 1440: link_types[$link_index]: unbound variable
Error: Failed to install dotnet, exit code: 1. /Users/runner/work/_actions/actions/setup-dotnet/v4/externals/install-dotnet.sh: line 1440: link_types[$link_index]: unbound variable

It used to happen only sporadically, but now it seems to always fail. Maybe before I got a different hosted runner at times.

Task version:

Download immutable action package 'actions/setup-dotnet@v4'
  Version: 4.3.1
  Digest: sha256:c7f3f729e5ef5b59af173c4efb4b30240ef30b219a7c12a6fae9f099415f688c
  Source commit SHA: 67a3573c9a986a3f9c594539f4ab511d57bb3ce9

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Repro steps:

Failure: https://github.com/jobbrIO/jobbr/actions/runs/15545946087/job/43794499458?pr=56
Workflow: https://github.com/jobbrIO/jobbr/blob/master/.github/workflows/ci.yml

  • Add setup-dotnet action step and request .NET 10.0.x on a macos-13 image
  • Run workflow
- name: Setup .NET 10.0.x SDK
  id: setup-dotnet
  uses: actions/setup-dotnet@v4
  with:
    dotnet-version: 10.0.x

Expected behavior:

.NET version is successfully installed

Actual behavior:

Install script fails before trying to install .NET

This doesn't occur with .NET 8 or 9

Metadata

Metadata

Assignees

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