Closed kaovilai closed 1 year ago
I couldn't reproduce this issue with Golang version v1.19.6.
root@jxun-jumpserver:~/Downloads# go version
go version go1.19.6 linux/amd64
root@jxun-jumpserver:~/Downloads# v
root@jxun-jumpserver:~/go/src/github.com/blackpiglet/velero# REGISTRY=blackpiglet VERSION=5938 make all-containers
[+] Building 567.3s (18/18) FINISHED
=> [internal] load build definition from Dockerfile 8.9s
=> => transferring dockerfile: 32B 8.7s
=> [internal] load .dockerignore 8.7s
=> => transferring context: 34B 8.7s
=> [internal] load metadata for docker.io/library/golang:1.18-bullseye 0.4s
=> [internal] load metadata for docker.io/library/golang:1.19-bullseye 0.4s
=> [internal] load metadata for gcr.io/distroless/base-nossl-debian11:nonroot 0.1s
=> [auth] library/golang:pull token for registry-1.docker.io 0.0s
=> [velero-builder 1/4] FROM docker.io/library/golang:1.18-bullseye@sha256:2cf761b45e5e3f150e332e60275cd092fb50b05fff4feec0a2856 0.0s
=> [restic-builder 1/3] FROM docker.io/library/golang:1.19-bullseye@sha256:8b7e5c2310aa5c29fefc174bd4368b9cf88565db5be1bba46c96a 0.0s
=> CACHED [stage-2 1/3] FROM gcr.io/distroless/base-nossl-debian11:nonroot@sha256:78d2ac043ae89e4ecdf969959ec299d0f7dc0d28f14944 0.0s
=> [internal] load build context 0.3s
=> => transferring context: 171.00kB 0.2s
=> CACHED [restic-builder 2/3] COPY . /go/src/github.com/vmware-tanzu/velero 0.0s
=> [restic-builder 3/3] RUN mkdir -p /output/usr/bin && export GOARM=$(echo "" | cut -c2-) && /go/src/github.com/vmwar 307.8s
=> CACHED [velero-builder 2/4] WORKDIR /go/src/github.com/vmware-tanzu/velero 0.0s
=> CACHED [velero-builder 3/4] COPY . /go/src/github.com/vmware-tanzu/velero 0.0s
=> [velero-builder 4/4] RUN mkdir -p /output/usr/bin && export GOARM=$( echo "" | cut -c2-) && go build -o /output/vel 545.1s
=> [stage-2 2/3] COPY --from=velero-builder /output / 0.7s
=> [stage-2 3/3] COPY --from=restic-builder /output / 0.5s
=> exporting to image 0.6s
=> => exporting layers 0.6s
=> => writing image sha256:fc391770f370dd3b85596550bde015384c88cc400aae21fabadfc132871f3dd0 0.0s
=> => naming to docker.io/blackpiglet/velero:5938 0.0s
container: blackpiglet/velero:5938
[+] Building 12.9s (18/18) FINISHED
=> [internal] load build definition from Dockerfile 7.6s
=> => transferring dockerfile: 32B 7.5s
=> [internal] load .dockerignore 7.6s
=> => transferring context: 34B 7.4s
=> [internal] load metadata for docker.io/library/golang:1.18-bullseye 0.4s
=> [internal] load metadata for gcr.io/distroless/base-nossl-debian11:nonroot 0.1s
=> [internal] load metadata for docker.io/library/golang:1.19-bullseye 0.4s
=> [auth] library/golang:pull token for registry-1.docker.io 0.0s
=> [velero-builder 1/4] FROM docker.io/library/golang:1.18-bullseye@sha256:2cf761b45e5e3f150e332e60275cd092fb50b05fff4feec0a2856 0.0s
=> [restic-builder 1/3] FROM docker.io/library/golang:1.19-bullseye@sha256:8b7e5c2310aa5c29fefc174bd4368b9cf88565db5be1bba46c96a 0.0s
=> CACHED [stage-2 1/3] FROM gcr.io/distroless/base-nossl-debian11:nonroot@sha256:78d2ac043ae89e4ecdf969959ec299d0f7dc0d28f14944 0.0s
=> [internal] load build context 0.4s
=> => transferring context: 171.00kB 0.3s
=> CACHED [velero-builder 2/4] WORKDIR /go/src/github.com/vmware-tanzu/velero 0.0s
=> CACHED [velero-builder 3/4] COPY . /go/src/github.com/vmware-tanzu/velero 0.0s
=> CACHED [restic-builder 2/3] COPY . /go/src/github.com/vmware-tanzu/velero 0.0s
=> [restic-builder 3/3] RUN mkdir -p /output/usr/bin && export GOARM=$(echo "" | cut -c2-) && /go/src/github.com/vmware- 1.1s
=> [velero-builder 4/4] RUN mkdir -p /output/usr/bin && export GOARM=$( echo "" | cut -c2-) && go build -o /output/veler 2.5s
=> [stage-2 2/3] COPY --from=velero-builder /output / 0.2s
=> [stage-2 3/3] COPY --from=restic-builder /output / 0.1s
=> exporting to image 0.1s
=> => exporting layers 0.1s
=> => writing image sha256:3f4d1af3826d8e3bfa2c746d98d3560ac93efbed27b11c90230324be6fbd4c8c 0.0s
=> => naming to docker.io/blackpiglet/velero-restore-helper:5938 0.0s
container: blackpiglet/velero-restore-helper:5938
root@jxun-jumpserver:~/go/src/github.com/blackpiglet/velero# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
blackpiglet/velero-restore-helper 5938 3f4d1af3826d 6 minutes ago 17.1MB
blackpiglet/velero 5938 fc391770f370 6 minutes ago 122MB
And I saw your comment in Golang issue https://github.com/golang/go/issues/53532#issuecomment-1450708681.
Is this issue specific to your project's build environment?
What steps did you take and what happened:
What did you expect to happen:
The following information will help us better understand what's going on:
If you are using velero v1.7.0+:
Please use
velero debug --backup <backupname> --restore <restorename>
to generate the support bundle, and attach to this issue, more options please refer tovelero debug --help
If you are using earlier versions:
Please provide the output of the following commands (Pasting long output into a GitHub gist or other pastebin is fine.)
kubectl logs deployment/velero -n velero
velero backup describe <backupname>
orkubectl get backup/<backupname> -n velero -o yaml
velero backup logs <backupname>
velero restore describe <restorename>
orkubectl get restore/<restorename> -n velero -o yaml
velero restore logs <restorename>
Anything else you would like to add:
Environment:
velero version
):velero client config get features
):kubectl version
):/etc/os-release
):Vote on this issue!
This is an invitation to the Velero community to vote on issues, you can see the project's top voted issues listed here.
Use the "reaction smiley face" up to the right of this comment to vote.