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

go1.20rc2 has been released but setup-go can't find it #318

Closed
4 of 5 tasks
ncw opened this issue Jan 12, 2023 · 4 comments
Closed
4 of 5 tasks

go1.20rc2 has been released but setup-go can't find it #318

ncw opened this issue Jan 12, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@ncw
Copy link

ncw commented Jan 12, 2023

Description:

I expected this to install go1.20rc2 which was released a few days ago

      - name: Install Go
        uses: actions/setup-go@v3
        with:
          go-version: '1.20-rc.2'
          check-latest: true

However it produces this error instead

Unable to find Go version '1.20-rc.2' for platform linux and architecture x64.

Action version:

v3

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:

'1.20-rc.2'

Repro steps:

See: https://github.com/rclone/rclone/actions/runs/3902313635

@ncw ncw added bug Something isn't working needs triage labels Jan 12, 2023
@dsame
Copy link
Contributor

dsame commented Jan 12, 2023

Hello @ncw , thank you for your input. The problem has been reproduced from the description. We'll investigate it

@dmitry-shibanov
Copy link
Contributor

Hello @ncw. We do not upload unstable versions to the manifest that is why you can get rid of check-latest: true. Besides, could you please fix version from 1.20-rc.2 to 1.20.0-rc.2.

@ncw
Copy link
Author

ncw commented Jan 13, 2023

I can confirm that using 1.20.0-rc.2 was the fix - thank you.

It is confusing that the versions setup-go uses are different to the versions the go team uses.

Perhaps the versions the user provides should be matched against a regexp and come up with an error message "version not in correct format" - that would have helped me to understand the problem?

@dmitry-shibanov
Copy link
Contributor

According to documentation setup-go uses SemVer notation. We have a feature request with adding native syntax.

For now I'm going to close the issue.

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