Remove GO111MODULE=on as it set to 'on' by default from Go 1.16

This commit is contained in:
Volodymyr Zotov
2025-06-17 11:19:21 -05:00
parent ac646ec56c
commit 49a5e93c44

View File

@@ -24,7 +24,7 @@ COPY version/ version/
# the docker BUILDPLATFORM arg will be linux/arm64 when for Apple x86 it will be linux/amd64. Therefore,
# by leaving it empty we can ensure that the container and binary shipped on it will have the same platform.
RUN CGO_ENABLED=0 \
GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} GO111MODULE=on \
GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} \
go build \
-ldflags "-X \"github.com/1Password/onepassword-operator/version.Version=$operator_version\"" \
-a -o manager cmd/main.go