Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to locate executable file: powershell #552

Open
2 of 5 tasks
dwisiswant0 opened this issue Feb 10, 2025 · 3 comments
Open
2 of 5 tasks

Unable to locate executable file: powershell #552

dwisiswant0 opened this issue Feb 10, 2025 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@dwisiswant0
Copy link

Description:

Failed to download version 1.18.10: Error: Unable to locate executable file: powershell.

Action version:
Specify the action version

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:

go1.18.x

Repro steps:

      - uses: actions/setup-go@v5
        with:
          go-version-file: 'go.mod'
          check-latest: true
          cache: true

Expected behavior:

Successfully set up Go.

Actual behavior:

Setup go version spec 1.18
Attempting to resolve the latest version from the manifest...
matching 1.18...
Resolved as '1.18.10'
Attempting to download 1.18.10...
matching 1.18.10...
Acquiring 1.18.10 from https://github.com/actions/go-versions/releases/download/1.18.10-3890634278/go-1.18.10-win32-x64.zip
Extracting Go...
Unable to locate executable file: powershell. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.
Falling back to download directly from Go
Install from dist
Acquiring go1.18.10 from https://storage.googleapis.com/golang/go1.18.10.windows-amd64.zip
Extracting Go...
Error: Failed to download version 1.18.10: Error: Unable to locate executable file: powershell. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.
@dwisiswant0 dwisiswant0 added bug Something isn't working needs triage labels Feb 10, 2025
@suyashgaonkar
Copy link

Hi @dwisiswant0, Thank you for creating this issue. We will investigate it and provide feedback as soon as we have some updates.

@gowridurgad
Copy link

Hi @dwisiswant0, After trying to replicate the issue based on provided workflow, it appears that everything is functioning correctly and were able to install Go version 1.18.10 successfully without encountering any errors on our end. Here's a screenshot for your reference.
To assist further, could you please share a link to the build or public repository where the issue can be reproduced? This will help us investigate the problem in detail.

Image

@dwisiswant0
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants