setup-go: compile: version "go1.16.2" does not match go tool version "go1.15.8"
Failed case: https://github.com/fatedier/release-test/runs/2121758524?check_suite_focus=true
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.16.2'
Workflow file: https://github.com/fatedier/release-test/actions/runs/657671091/workflow
I’m not sure why there are go1.15.8 version.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 9
- Comments: 17 (5 by maintainers)
Commits related to this issue
- pull in workarond from actions/setup-go#107 — committed to jacobbednarz/cloudflare-go by jacobbednarz 2 years ago
- pull in workarond from actions/setup-go#107 — committed to jacobbednarz/cloudflare-go by jacobbednarz 2 years ago
- pull in workarond from actions/setup-go#107 — committed to jacobbednarz/cloudflare-go by jacobbednarz 2 years ago
- pull in workarond from actions/setup-go#107 — committed to jacobbednarz/cloudflare-go by jacobbednarz 2 years ago
- pull in workarond from actions/setup-go#107 — committed to jacobbednarz/cloudflare-go by jacobbednarz 2 years ago
- pull in workarond from actions/setup-go#107 — committed to jacobbednarz/cloudflare-go by jacobbednarz 2 years ago
- fix the issue: compile: version go1.16.15 does not match go tool version go1.17.11 Refer to https://github.com/actions/setup-go/issues/107 Signed-off-by: Benjamin Wang <wachao@vmware.com> — committed to ahrtr/etcd by ahrtr 2 years ago
- fix the issue: compile: version go1.16.15 does not match go tool version go1.17.11 Refer to https://github.com/actions/setup-go/issues/107 Signed-off-by: Benjamin Wang <wachao@vmware.com> — committed to ahrtr/etcd by ahrtr 2 years ago
- fix the issue: compile: version go1.16.15 does not match go tool version go1.17.11 Refer to https://github.com/actions/setup-go/issues/107 Signed-off-by: Benjamin Wang <wachao@vmware.com> — committed to ahrtr/etcd by ahrtr 2 years ago
- fix the issue: compile: version go1.16.15 does not match go tool version go1.17.11 Refer to https://github.com/actions/setup-go/issues/107 Signed-off-by: Benjamin Wang <wachao@vmware.com> — committed to ahrtr/etcd by ahrtr 2 years ago
- fix the issue: compile: version go1.16.15 does not match go tool version go1.17.11 Refer to https://github.com/actions/setup-go/issues/107 Signed-off-by: Benjamin Wang <wachao@vmware.com> — committed to ahrtr/etcd by ahrtr 2 years ago
- fix all the pipeline failues for release 3.4 Items resolved: 1. fix the vet error: possible misuse of reflect.SliceHeader; 2. fix the vet error: call to (*T).Fatal from a non-test goroutine; 3. bump ... — committed to ahrtr/etcd by ahrtr 2 years ago
- fix all the pipeline failues for release 3.4 Items resolved: 1. fix the vet error: possible misuse of reflect.SliceHeader; 2. fix the vet error: call to (*T).Fatal from a non-test goroutine; 3. bump ... — committed to ahrtr/etcd by ahrtr 2 years ago
- fix all the pipeline failues for release 3.4 Items resolved: 1. fix the vet error: possible misuse of reflect.SliceHeader; 2. fix the vet error: call to (*T).Fatal from a non-test goroutine; 3. bump ... — committed to ahrtr/etcd by ahrtr 2 years ago
- fix all the pipeline failues for release 3.4 Items resolved: 1. fix the vet error: possible misuse of reflect.SliceHeader; 2. fix the vet error: call to (*T).Fatal from a non-test goroutine; 3. bump ... — committed to ahrtr/etcd by ahrtr 2 years ago
- fix all the pipeline failues for release 3.4 Items resolved: 1. fix the vet error: possible misuse of reflect.SliceHeader; 2. fix the vet error: call to (*T).Fatal from a non-test goroutine; 3. bump ... — committed to ahrtr/etcd by ahrtr 2 years ago
- fix all the pipeline failues for release 3.4 Items resolved: 1. fix the vet error: possible misuse of reflect.SliceHeader; 2. fix the vet error: call to (*T).Fatal from a non-test goroutine; 3. bump ... — committed to tjungblu/etcd by ahrtr 2 years ago
- Fix: [GitHub][workflows] Akebi HTTPS Server のビルドに正しい Golang バージョンが使われていなかった問題を修正 ref: https://github.com/actions/setup-go/issues/107#issuecomment-853325017 — committed to tsukumijima/KonomiTV by tsukumijima 8 months ago
this issue can be duct-taped like:
issue I found is that
GOROOT
is appended at the end of the path, basically it will resolve system go in/usr/bin
first if not fixedNoticed that I see this issue while using act, i could not reproduce it on the Github.
Hi @fatedier, could you try to remove go symlink from
/usr/bin
as workaround in your workflow file?@Sergey-Murtazin Thanks for your reply.
Maybe remove
export PATH := $(GOPATH)/bin:$(PATH)
could work for this Makefile since it not rely on $(GOPATH)/bin.However, i need to execute
make e2e
to run e2e tests in my real project. It will download ginkgo first bygo install github.com/onsi/ginkgo/ginkgo@latest
and then execute it from $GOPATH/bin. It works well in most of environments.Can we set
GOPATH
variable insetup-go
action, so users will not be affect by different environments?Ok so I managed to solve it by specifying go to use in the build process when using https://github.com/open-telemetry/opentelemetry-collector-builder
The problem is that
/usr/bin/go
has a different version than what is installed via the action (unless you specify the very same version to use ofc).