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

Partial version numbers don't work correctly. #344

Closed
2 of 5 tasks
sazzer opened this issue Mar 9, 2023 · 2 comments
Closed
2 of 5 tasks

Partial version numbers don't work correctly. #344

sazzer opened this issue Mar 9, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@sazzer
Copy link

sazzer commented Mar 9, 2023

Description:
I've just tried to configure this action to install Go "1.20" - in the hopes that this would then actually install the latest 1.20.x without my needing to be exact. However, what it actually did was install 1.2 instead, which then obviously failed to run the CI pipeline.

Action version:
actions/setup-go@v3

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
N/A

Repro steps:
The following Github Actions script:

name: CI

on:
  push:

env:
  GO_VERSION: 1.20

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3

      - name: Install Go
        uses: actions/setup-go@v3
        with:
          go-version: ${{ env.GO_VERSION }}

Expected behavior:
Ideal would be the latest version of 1.20.x. Acceptable would have been 1.20.0.

Actual behavior:

Setup go version spec 1.2
Attempting to download 1.2...
matching 1.2...
Not found in manifest.  Falling back to download directly from Go
Install from dist
Acquiring go1.2.2 from https://storage.googleapis.com/golang/go1.2.2.linux-amd64.tar.gz
Extracting Go...
/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /home/runner/work/_temp/edf7e45b-ea7a-4f98-ab2e-5d9a2ca844a2 -f /home/runner/work/_temp/6725d6de-8678-4dba-bac9-bae7d7ef6599
Successfully extracted go to /home/runner/work/_temp/edf7e45b-ea7a-4f98-ab2e-5d9a2ca844a2
Adding to the cache ...
Successfully cached go to /opt/hostedtoolcache/go/1.2.2/x64
Added go to the path
Setting GOROOT for Go version < 1.9
Successfully set up Go version 1.2
go version go1.2.2 linux/amd64
@sazzer sazzer added bug Something isn't working needs triage labels Mar 9, 2023
@dmitry-shibanov
Copy link
Contributor

Hello @sazzer. Thank you for your report. Could you please specify version as go-version: '1.20' ? For now I'm going to close the issue as a duplicate of #326

@dmitry-shibanov dmitry-shibanov closed this as not planned Won't fix, can't repro, duplicate, stale Mar 9, 2023
@sazzer
Copy link
Author

sazzer commented Mar 9, 2023

Aha - yes, reading that one and it makes sense now. Stupid Yaml :)

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

2 participants