Skip to content

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

Closed

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

Activity

  1. v-gowridurgad commented on Jun 11, 2025

    @v-gowridurgad
    Contributor

    Hi @eXpl0it3r,
    Thank you for creating this issue, we will investigate it and come back to you as soon as we have some feedback.

  2. v-priyagupta108 commented on Jun 20, 2025

    @v-priyagupta108
    Contributor

    Hi @eXpl0it3r 👋,
    The issue is caused by a problem within dotnet/install-scripts. The discussion in dotnet/install-scripts#610 is relevant to this issue, and the fix has been implemented in PR dotnet/install-scripts#617.

    Currently, we are working on updating the install scripts to incorporate this fix.

    Thank you for your cooperation while we work on resolving this. We'll update this thread as soon as the fix is in place. If you have any further feedback or encounter related issues, please let us know!

  3. eXpl0it3r commented on Jun 20, 2025

    @eXpl0it3r
    Author

    I figure it might be somewhere in install-scripts, but thought you will best know where to look. Thanks for keeping me updated!

  4. skwasjer commented on Jun 24, 2025

    @skwasjer

    I have the same issue installing .NET Core 3.1 on macos-13 image, which used to work fine. Since this was reported for .NET 10, I'd thought I'd mention it as I can't tell if the fix will also address the 3.1 channel.

    Or are the EOL versions completely removed going forward?

    /Users/runner/work/_actions/actions/setup-dotnet/v4/externals/install-dotnet.sh --skip-non-versioned-files --channel 3.1
    /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
    

    https://github.com/skwasjer/Correlate/actions/runs/15858765987/job/44710607520?pr=135

  5. v-priyagupta108 commented on Jun 26, 2025

    @v-priyagupta108
    Contributor

    Hello 👋,
    We've successfully merged the fix from PR #647 into the main branch. The changes are now available on actions/setup-dotnet@main and will be included in the upcoming releases.
    We’ll be closing this issue. Please feel free to reach out if you have any further concerns or need additional assistance.
    Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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