-
Notifications
You must be signed in to change notification settings - Fork 531
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
support for new go 1.20 #326
Comments
If i set go 1.20, setup-go will grab go 1.2.2 instead of go 1.20. Issue solved by using tag go 1.20.0 |
if use but looks like it is an issue in the github action infrastructure and not in the setup-go action itself |
hi @jason-huang-deltatre, thank you for the report, we will take a look at it :) |
I faced similar issue while having go version without apostrophes in gha .yaml file. This this 1.20 => 1.2 conversion can happened to any value in gha .yaml without apostrophes |
Hello everyone. I think it is an expected behaviour. You need to specify version like this Thank you for your reply @leonbergr. For now I'm going to close the issue. |
I recently came across a bug where specifying `go-version: '1.20'` used Go 1.2, not 1.20. It was not clear from the readme that to avoid this, the Go version should be written inside single quotes (as per this comment: actions/setup-go#326 (comment)) but the single quotes are missing from the example in this repository. This PR fixes this.
I got bitten by this too... goddamn YAML. |
* [INTG-2805] Adding date to the log * [INTG-2805] Use time.DateOnly instead * [INTG-2805] Upgrade to go1.20 * [INTG-2805] Fix tests for 1.20 * [INTG-2805] actions/setup-go#326 (comment) * [INTG-2805] Typo * [INTG-2805] Typo * [INTG-2805] Typo --------- Co-authored-by: Charles Lee <charles@Charles-Lees-MacBook-Pro.local>
Signed-off-by: zachaller <zachaller@users.noreply.github.com>
Signed-off-by: zachaller <zachaller@users.noreply.github.com>
* bump golang to 1.20 Signed-off-by: zachaller <zachaller@users.noreply.github.com> * use .x because of actions/setup-go#326 Signed-off-by: zachaller <zachaller@users.noreply.github.com> * use .x because of actions/setup-go#326 Signed-off-by: zachaller <zachaller@users.noreply.github.com> * change test to avoid loopclosure: loop variable test captured by func literal from go vet Signed-off-by: zachaller <zachaller@users.noreply.github.com> * ignore new govet rules for tests to pass Signed-off-by: zachaller <zachaller@users.noreply.github.com> * change closures Signed-off-by: zachaller <zachaller@users.noreply.github.com> * fix test Signed-off-by: zachaller <zachaller@users.noreply.github.com> * fix test Signed-off-by: zachaller <zachaller@users.noreply.github.com> * fix go vet by removing concurency Signed-off-by: zachaller <zachaller@users.noreply.github.com> * one more Signed-off-by: zachaller <zachaller@users.noreply.github.com> * copy var instead of removing Parallel Signed-off-by: zachaller <zachaller@users.noreply.github.com> * copy var instead of removing Parallel Signed-off-by: zachaller <zachaller@users.noreply.github.com> --------- Signed-off-by: zachaller <zachaller@users.noreply.github.com>
github action fails to pick up 1.20 correctly ref actions/setup-go#326
* Upgrade Go from 1.19 to 1.20. * Update tools to latest. * Bump controller-runtime from 0.16.2 to 0.16.3. Set version to 1.20.x in action/setup-go because of #actions/setup-go/issues/326
Description:
CI failed after I specified the version to go 1.20, here is the error:
Error: perfutils/ballast/ballast.go:6:2: cannot find package "k8s.io/apimachinery/pkg/api/resource" in any of:
/opt/hostedtoolcache/go/1.2.2/x64/src/pkg/k8s.io/apimachinery/pkg/api/resource (from $GOROOT)
($GOPATH not set)
I guess it is because setup-go action picked up go version 1.2 by mistake. It should be version 1.20 (since go use semantic versioning). Can you guys please fix that?
Action version:
Latest version
Platform:
Runner type:
Tools version:
Repro steps:
A description with steps to reproduce the issue. If your have a public example or repo to share, please provide the link.
Expected behavior:
A description of what you expected to happen.
Actual behavior:
A description of what is actually happening.
The text was updated successfully, but these errors were encountered: