Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Dependency requires Go 1.17, which kube2iam fails to build with #343

Open
agaffney opened this issue Aug 1, 2022 · 0 comments
Open

Dependency requires Go 1.17, which kube2iam fails to build with #343

agaffney opened this issue Aug 1, 2022 · 0 comments

Comments

@agaffney
Copy link

agaffney commented Aug 1, 2022

When building kube2iam with Go 1.14 (for the purpose of creating an ARM docker image), you encounter this error:

# golang.org/x/net/http2
/go/pkg/mod/golang.org/x/net@v0.0.0-20220722155237-a158d28d115b/http2/transport.go:416:45: undefined: os.ErrDeadlineExceeded
note: module requires Go 1.17

When trying to build with Go 1.17, you first encounter a problem with things like go get -v -u golang.org/x/tools/cmd/goimports no longer doing the build/install (due to purposeful deprecations...https://go.dev/doc/go-get-install-deprecation). I hand-waved that problem away, and then I get:

go build -o build/bin/linux/kube2iam -ldflags "-s -X ""github.com/jtblin"/kube2iam"/version.Version=$(git describe --abbrev=0 --tags) -X ""github.com/jtblin"/kube2iam"/version.GitCommit=$(git rev-parse --short HEAD) -X ""github.com/jtblin"/kube2iam"/version.BuildDate=$(date +%Y-%m-%d-%H:%M)" github.com/jtblin/kube2iam/cmd
/code/pkg/mod/golang.org/x/crypto@v0.0.0-20210921155107-089bfa567519/ssh/terminal/terminal.go:14:2: missing go.sum entry for module providing package golang.org/x/term (imported by golang.org/x/crypto/ssh/terminal); to add:
	go get golang.org/x/crypto/ssh/terminal@v0.0.0-20210921155107-089bfa567519
make: *** [Makefile:28: build] Error 1
The command '/bin/sh -c make setup && make build' returned a non-zero code: 2

I tried running go mod tidy before running make to update the go.mod and go.sum, but that didn't seem to help.

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

No branches or pull requests

1 participant