-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Bump golang to 1.19 #3151
Bump golang to 1.19 #3151
Conversation
Signed-off-by: David Porter <david@porter.me>
Might be a bit early...
|
just re-ran the jobs in GH actions, seems like at least the amd64 image made it, so jobs should be ✅ |
it's breaking when I try to build locally, when using the same image from dockerhub (golang:1.19-alpine3.16) it works - it appears the base image is not (publicly) available at gcr.io? $ docker build -t cadvisor:local_test -f deploy/Dockerfile .
Sending build context to Docker daemon 62.94MB
Step 1/23 : FROM mirror.gcr.io/library/golang:1.19-alpine3.16 AS build
manifest for mirror.gcr.io/library/golang:1.19-alpine3.16 not found: manifest unknown: Failed to fetch "1.19-alpine3.16" from request "/v2/library/golang/manifests/1.19-alpine3.16". |
if golang is 1.19, but "go 1.16" in go.mod and cmd/go.mod, build/build.sh failed with "go mod vendor" by golang sh-5.1# pwd sh-5.1# make build
golang.org/x/sys/unixvendor/golang.org/x/sys/unix/syscall.go:83:16: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod) github.com/klauspost/compress/huff0vendor/github.com/klauspost/compress/huff0/decompress.go:774:21: cannot convert out (variable of type []byte) to type *[256]byte: |
make build success after removing cmd/vendor, using mod in GOMODCACHE. I don't know why |
make build failed when copying modules in GOMODCACHE to cmd/vendor.
|
Signed-off-by: David Porter david@porter.me