Skip to content

Runner v2.320.0 breaks Nuget pack command #3507

@rubik-tech-admin

Description

@rubik-tech-admin

Describe the bug
When running nuget pack in my hosted github action, since it has started using v2.320.0 it fails with the following error:

/opt/hostedtoolcache/nuget.exe/6.11.1/x64/nuget: 2: mono: not found
Error: Process completed with exit code 127.

To Reproduce
Steps to reproduce the behavior:

  1. Create a Github Action
  2. Use NuGet/setup-nuget@v2.0.0 to install the latest version of Nuget
  3. Create a step that uses Nuget to pack some files

Expected behavior
A nuget package should be created

Runner Version and Platform

v2.320.0
ubuntu-latest

OS of the machine running the runner? OSX/Windows/Linux/...
ubuntu-latest

What's not working?

See above

Job Log Output

Run nuget pack $Nuspec_File_Name -Version 1.50.0
  nuget pack $Nuspec_File_Name -Version 1.50.0
  shell: /usr/bin/bash -e {0}
  env:
    Nuspec_File_Name: Rubik.Sage.Base.nuspec
    Solution_Name: Rubik.Sage.Base.sln
    NUGET: /opt/hostedtoolcache/nuget.exe/6.11.1/x64/nuget.exe
    DOTNET_ROOT: /usr/share/dotnet
##[debug]/usr/bin/bash -e /home/runner/work/_temp/f3fef[55](https://github.com/rubik-tech-admin/Rubik-Sage-Base/actions/runs/11367061461/job/31619209890#step:14:55)b-7499-4e72-ad1e-df0a545c5f9a.sh
/opt/hostedtoolcache/nuget.exe/6.11.1/x64/nuget: 2: mono: not found
Error: Process completed with exit code 127.

Metadata

Metadata

Assignees

No one assigned

    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