-
Notifications
You must be signed in to change notification settings - Fork 552
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
compile: version "go1.16.2" does not match go tool version "go1.15.8" #107
Comments
+1 |
This also happens for me here: https://github.com/SumoLogic/opentelemetry-collector-contrib/runs/2345097930?check_suite_focus=true |
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 |
@bryanmacfarlane this seems like a bit of a showstopper bug, causing Go 1.16 not to work without some kind of workaround. The issue manifests when trying to run a command like |
In my case, the issue was resolved by removing |
this issue can be duct-taped like:
issue I found is that |
Noticed that I see this issue while using act, i could not reproduce it on the Github. |
Hi, @fatedier ! I've forked your repository and reproduced your issue. Please remove the Thanks! |
@Sergey-Murtazin Thanks for your reply. Maybe remove However, i need to execute Can we set |
@Sergey-Murtazin It seems setup-go already modifies It works well in github action but maybe not user's local computer. I add |
Hi @fatedier, could you try to remove go symlink from
|
@vsafonkin I fix this issue by "cp -f `which go` /usr/bin/go" in my project |
Hi, @fatedier There is a problem with a symlink to the default go version on the runner in |
…ion go1.17.11 Refer to actions/setup-go#107 Signed-off-by: Benjamin Wang <[email protected]>
…ion go1.17.11 Refer to actions/setup-go#107 Signed-off-by: Benjamin Wang <[email protected]>
…ion go1.17.11 Refer to actions/setup-go#107 Signed-off-by: Benjamin Wang <[email protected]>
…ion go1.17.11 Refer to actions/setup-go#107 Signed-off-by: Benjamin Wang <[email protected]>
…ion go1.17.11 Refer to actions/setup-go#107 Signed-off-by: Benjamin Wang <[email protected]>
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 package golang.org/x/crypto, net and sys; 4. bump boltdb from 1.3.3 to 1.3.6; 5. remove the vendor directory; 6. remove go 1.12.17 and 1.15.15, add go 1.16.15 into pipeline; 7. bump go version to 1.16 in go.mod; 8. fix the issue: compile: version go1.16.15 does not match go tool version go1.17.11, refer to actions/setup-go#107; 9. fix data race on compactMainRev and watcherGauge. Signed-off-by: Benjamin Wang <[email protected]>
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 package golang.org/x/crypto, net and sys; 4. bump boltdb from 1.3.3 to 1.3.6; 5. remove the vendor directory; 6. remove go 1.12.17 and 1.15.15, add go 1.16.15 into pipeline; 7. bump go version to 1.16 in go.mod; 8. fix the issue: compile: version go1.16.15 does not match go tool version go1.17.11, refer to actions/setup-go#107; 9. fix data race on compactMainRev and watcherGauge; 10. fix test failure for TestLeasingTxnOwnerGet in cluster_proxy mode. Signed-off-by: Benjamin Wang <[email protected]>
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 package golang.org/x/crypto, net and sys; 4. bump boltdb from 1.3.3 to 1.3.6; 5. remove the vendor directory; 6. remove go 1.12.17 and 1.15.15, add go 1.16.15 into pipeline; 7. bump go version to 1.16 in go.mod; 8. fix the issue: compile: version go1.16.15 does not match go tool version go1.17.11, refer to actions/setup-go#107; 9. fix data race on compactMainRev and watcherGauge; 10. fix test failure for TestLeasingTxnOwnerGet in cluster_proxy mode. Signed-off-by: Benjamin Wang <[email protected]>
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 package golang.org/x/crypto, net and sys; 4. bump boltdb from 1.3.3 to 1.3.6; 5. remove the vendor directory; 6. remove go 1.12.17 and 1.15.15, add go 1.16.15 into pipeline; 7. bump go version to 1.16 in go.mod; 8. fix the issue: compile: version go1.16.15 does not match go tool version go1.17.11, refer to actions/setup-go#107; 9. fix data race on compactMainRev and watcherGauge; 10. fix test failure for TestLeasingTxnOwnerGet in cluster_proxy mode. Signed-off-by: Benjamin Wang <[email protected]>
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 package golang.org/x/crypto, net and sys; 4. bump boltdb from 1.3.3 to 1.3.6; 5. remove the vendor directory; 6. remove go 1.12.17 and 1.15.15, add go 1.16.15 into pipeline; 7. bump go version to 1.16 in go.mod; 8. fix the issue: compile: version go1.16.15 does not match go tool version go1.17.11, refer to actions/setup-go#107; 9. fix data race on compactMainRev and watcherGauge; 10. fix test failure for TestLeasingTxnOwnerGet in cluster_proxy mode. Signed-off-by: Benjamin Wang <[email protected]>
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 package golang.org/x/crypto, net and sys; 4. bump boltdb from 1.3.3 to 1.3.6; 5. remove the vendor directory; 6. remove go 1.12.17 and 1.15.15, add go 1.16.15 into pipeline; 7. bump go version to 1.16 in go.mod; 8. fix the issue: compile: version go1.16.15 does not match go tool version go1.17.11, refer to actions/setup-go#107; 9. fix data race on compactMainRev and watcherGauge; 10. fix test failure for TestLeasingTxnOwnerGet in cluster_proxy mode. Signed-off-by: Benjamin Wang <[email protected]>
Current version of action set the PATH variable in order In case if default go version ( @fatedier i am going to close the issue because it is answered, but please feel free to reopen this issue or create new one if the problem still exists. |
has solved for me. |
Failed case:
https://github.com/fatedier/release-test/runs/2121758524?check_suite_focus=true
Workflow file:
https://github.com/fatedier/release-test/actions/runs/657671091/workflow
I'm not sure why there are go1.15.8 version.
The text was updated successfully, but these errors were encountered: