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.

Error package constraints is not in GOROOT in setup-go v3 with go version 1.18

See original GitHub issue

Description: 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:closed
  • Created a year ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
marko-zivic-93commented, Mar 25, 2022

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.

1reaction
arthurkushmancommented, Mar 28, 2022

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 👌🏻

Read more comments on GitHub >

github_iconTop 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 >

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