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

go build -mod=vendor ./cmd/wire doesn't work after update to 0.6.0 #404

Open
dsh2dsh opened this issue Feb 20, 2024 · 0 comments
Open

go build -mod=vendor ./cmd/wire doesn't work after update to 0.6.0 #404

dsh2dsh opened this issue Feb 20, 2024 · 0 comments

Comments

@dsh2dsh
Copy link

dsh2dsh commented Feb 20, 2024

You can use go bug to have a cool, automatically filled out bug template, or
fill out the template below.

Describe the bug

go build -mod=vendor ./cmd/wire doesn't work after update to 0.6.0

To Reproduce

go mod vendor
go build -mod=vendor ./cmd/wire

# golang.org/x/tools/internal/event/keys
vendor/golang.org/x/tools/internal/event/keys/util.go:14:11: type parameter requires go1.18 or later (-lang was set to go1.16; check go.mod)
vendor/golang.org/x/tools/internal/event/keys/util.go:14:13: embedding interface element ~[]T requires go1.18 or later (-lang was set to go1.16; check go.mod)
vendor/golang.org/x/tools/internal/event/keys/util.go:14:21: embedding interface element ~string requires go1.18 or later (-lang was set to go1.16; check go.mod)
vendor/golang.org/x/tools/internal/event/keys/util.go:15:32: invalid argument: s (variable of type S constrained by ~[]T) for len
vendor/golang.org/x/tools/internal/event/keys/util.go:16:20: cannot range over s (variable of type S constrained by ~[]T): no core type
# golang.org/x/tools/internal/versions
vendor/golang.org/x/tools/internal/versions/types.go:15:16: predeclared any requires go1.18 or later (-lang was set to go1.16; check go.mod)

Expected behavior

I'm expecting successful build.

Version

0.6.0

Additional context

The fix would be bump go version in go.mod from 1.12 to 1.18.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant