bwplotka / bingo

Like `go get` but for Go tools! CI Automating versioning of Go binaries in a nested, isolated Go modules.
Apache License 2.0
342 stars 29 forks source link

"Predeclared any required go1.18 or later (-lang was set to go1.16) #128

Closed bwplotka closed 1 year ago

bwplotka commented 1 year ago

bingo version output: v0.7

go version output: go version go1.19.1 linux/amd64

What happened:

./bingo/.bin/bingo get github.com/bwplotka/mdox@818772c6517630714db8b132cb94f25f72a38850
Error: get command failed: get: mdox.mod: getting github.com/bwplotka/mdox@818772c6517630714db8b132cb94f25f72a38850: install: build versioned: # github.com/gohugoio/hugo/docshelper
../../../.gvm/pkgsets/go1.19.1/global/pkg/mod/github.com/gohugoio/hugo@v0.101.0/docshelper/docs.go:20:40: predeclared any requires go1.18 or later (-lang was set to go1.16; check go.mod)
../../../.gvm/pkgsets/go1.19.1/global/pkg/mod/github.com/gohugoio/hugo@v0.101.0/docshelper/docs.go:47:32: predeclared any requires go1.18 or later (-lang was set to go1.16; check go.mod)
# github.com/gohugoio/hugo/common/math
../../../.gvm/pkgsets/go1.19.1/global/pkg/mod/github.com/gohugoio/hugo@v0.101.0/common/math/math.go:23:24: predeclared any requires go1.18 or later (-lang was set to go1.16; check go.mod)
# github.com/gohugoio/hugo/common/text
../../../.gvm/pkgsets/go1.19.1/global/pkg/mod/github.com/gohugoio/hugo@v0.101.0/common/text/transform.go:27:14: predeclared any requires go1.18 or later (-lang was set to go1.16; check go.mod)
../../../.gvm/pkgsets/go1.19.1/global/pkg/mod/github.com/gohugoio/hugo@v0.101.0/common/text/position.go:72:18: predeclared any requires go1.18 or later (-lang was set to go1.16; check go.mod)
bwplotka commented 1 year ago

v0.9.0 mdox works.

To investigate.

myles-mcdonnell commented 1 year ago

I get exactly the same problem with:

bingo get -l github.com/kyleconroy/sqlc/cmd/sqlc@v1.16.0

however, an older version works fine:

bingo get -l github.com/kyleconroy/sqlc/cmd/sqlc@v1.14.0

bwplotka commented 1 year ago

Dup of https://github.com/bwplotka/bingo/issues/125