question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

compile: version "go1.16.2" does not match go tool version "go1.15.8"

See original GitHub issue

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.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:8
  • Comments:15 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
76createscommented, Jun 3, 2021

this issue can be duct-taped like:

      run: |
        export PATH=${GOROOT}/bin:$PATH
        go version

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 fixed

Noticed that I see this issue while using act, i could not reproduce it on the Github.

5reactions
76createscommented, Jun 2, 2021

this issue can be duct-taped like:

      run: |
        export PATH=${GOROOT}/bin:$PATH
        go version

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 fixed

Read more comments on GitHub >

github_iconTop Results From Across the Web

compile: version "go1.9" does not match go ... - Stack Overflow
This is a mismatch between the GOROOT environment variable and the default path to your go command. One or the other needs to...
Read more >
Getting this error: compile: version "go1.13.7" does not match ...
"The error is telling you that you have a weird mix of Go versions on top of one another, or mixed up together...
Read more >
Compile: version "go1.13" does not match go tool ... - Go Forum
I am a go novice trying to build on my Mac get this error I have uninstalled go and reinstalled go via brew...
Read more >
other - Go Changes
doc/go1.20: go version supports non-executable Go binariesno-owners ... cmd{cover,covdata,go}: better coverage for tests that build tools.
Read more >
Release History - The Go Programming Language
For example, Go 1.5 was supported until the Go 1.7 release, and Go 1.6 was supported ... go1.16.2 (released 2021-03-11) includes fixes to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found