Error package constraints is not in GOROOT in setup-go v3 with go version 1.18
See original GitHub issueDescription:
I’m trying to run GitHub Actions after updating repo to Go 1.18 version and setup-go
to v3
and it’s go version
to 1.18
, also updated checkout
to @v3
in context of compatibility - the error https://github.com/arthurkushman/pgo/runs/5618443803?check_suite_focus=true
Action version:
v3
Platform:
- Ubuntu
Runner type:
- Hosted
Tools version:
1.18
, also tried 1.18.0
Repro steps:
Any push to repo - https://github.com/arthurkushman/pgo
Expected behavior: Project’s GitHub Actions https://github.com/arthurkushman/pgo runs successfully with setup-go without an error
constraints: package constraints is not in GOROOT (/opt/hostedtoolcache/go/1.18.0/x64/src/constraints)
Actual behavior: An error occurred while running the project with setup-go https://github.com/arthurkushman/pgo in GitHubActions
constraints: package constraints is not in GOROOT (/opt/hostedtoolcache/go/1.18.0/x64/src/constraints)
Issue Analytics
- State:
- Created a year ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
"package XXX is not in GOROOT" when building a Go project
Upon starting up Goland, I'm riddled with errors when trying to run my project. The specific error, when building one of my packages,...
Read more >"package … is not in GOROOT" is confusing in module mode ...
What did you do? If a parent folder contained a go.mod this overrides the GOPATH setting and there is no clear indication this...
Read more >Go - package is not in GOROOT - DEV Community
The cause is a package structure. Putting it together solves it. Error. Below is the directory structure when the error occurred.
Read more >Error: package is not in GOROOT : r/golang - Reddit
I am new to Go trying to go through material in a book I just got a few days ago. Everything was going...
Read more >Set up Go | Code Cookbook - Michael Currin
Download a single Go version. The Go version will be the latest unless you specify a version. Previously downloaded versions will be used...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @arthurkushman! Thank you very much for reporting this issue! We will take a look at it and provide you with a response as soon as possible.
It seems like in Go 1.18.0 no constraints package nor comparable type constraints works like expected though promised by Go team and community, probably they just changed behaviors of those in the last moment right before release of 1.18.0, but everything worked in 1.18beta1 which makes me think of as totally insane behavior (Moreover there are doc pages like - https://pkg.go.dev/golang.org/x/exp/constraints#Ordered) 🤷🏻♂️
PS then ok - we can close this bug issue relative to
setup-go
thx and sorry for your time 👌🏻