Skip to content
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

error when go install v1.11.0 #372

Open
frankful opened this issue Sep 27, 2023 · 3 comments
Open

error when go install v1.11.0 #372

frankful opened this issue Sep 27, 2023 · 3 comments
Labels
question Further information is requested

Comments

@frankful
Copy link

$ go install gotest.tools/gotestsum@latest
go: downloading gotest.tools/gotestsum v1.11.0
go: downloading gotest.tools v1.4.0
go: downloading gotest.tools v2.2.0+incompatible
go: downloading github.com/dnephin/pflag v1.0.7
go: downloading github.com/fatih/color v1.15.0
go: downloading golang.org/x/tools v0.11.0
go: downloading github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
go: downloading github.com/bitfield/gotestdox v0.2.1
go: downloading golang.org/x/sync v0.3.0
go: downloading golang.org/x/term v0.10.0
go: downloading github.com/fsnotify/fsnotify v1.5.4
go: downloading golang.org/x/sys v0.10.0
go: downloading github.com/mattn/go-colorable v0.1.13
go: downloading github.com/mattn/go-isatty v0.0.19
go: downloading golang.org/x/text v0.11.0
go: downloading golang.org/x/mod v0.12.0
.go/pkg/mod/gotest.tools/gotestsum@v1.11.0/testjson/format.go:11:2: //go:build comment without // +build comment

@dnephin
Copy link
Member

dnephin commented Sep 27, 2023

Hello, thank you for the bug report!

I'm confused by this error because I don't see any build comments in that file. Line 11 is an import of a package that also does not appear to have buildcomments.

I tried go install and it works for me. Which version of Go are you running, and on which OS/arch ?

@frankful
Copy link
Author

frankful commented Sep 28, 2023

kubernetes 1.20 gitlab runner, ubuntu 18.04, golang 1.17.9

@dnephin
Copy link
Member

dnephin commented Sep 29, 2023

I tried this and it installed properly without any errors.

$ docker run -ti golang:1.17.9 go install gotest.tools/gotestsum@latest

It sounds like the error is described in this issue: golang/go#51436

And this does reproduce it:

$ docker run -ti golang:1.16.9 go install gotest.tools/gotestsum@latest

Both Go1.16 and Go1.17 are past their EOL. The only supported Go versions are 1.21 and 1.20. I think the fix is to upgrade your version of Go.

@dnephin dnephin added the question Further information is requested label Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants