Skip to content

Commit 8927a45

Browse files
committed
replace nosystemcrypto with boringcrypto
1 parent 46a49f5 commit 8927a45

File tree

1 file changed

+2
-22
lines changed

1 file changed

+2
-22
lines changed

.pipelines/cni/cilium/nightly-release-test.yml

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -67,26 +67,6 @@ stages:
6767
ALPINE_ARGS="--build-arg ALPINE_IMAGE=${alpineACR} "
6868
fi
6969
70-
#if [ "$(type)" = "docker-operator-generic-image" ]; then
71-
# echo "Applying GOEXPERIMENT patch for operator build"
72-
73-
# # Apply patch to Dockerfile
74-
# DOCKERFILE_PATH="./images/$(directory)/Dockerfile"
75-
# echo "Patching Dockerfile: $DOCKERFILE_PATH"
76-
77-
# # Add ARG and ENV statements after the first FROM instruction (inside the build stage)
78-
# sed -i '/^FROM.*builder/a ARG GOEXPERIMENT=nosystemcrypto\nENV GOEXPERIMENT=${GOEXPERIMENT}\nENV CGO_ENABLED=1' "$DOCKERFILE_PATH"
79-
80-
# # Remove the problematic cache mount for /go/pkg to avoid systemcrypto conflicts
81-
# sed -i 's/--mount=type=cache,target=\/go\/pkg[[:space:]]*//g' "$DOCKERFILE_PATH"
82-
83-
# # Clear Go cache directories and rebuild standard library with nosystemcrypto
84-
# sed -i '/ENV CGO_ENABLED=0/a RUN rm -rf /root/.cache/go-build /go/pkg && \\\n mkdir -p /go/pkg && \\\n GOEXPERIMENT=nosystemcrypto GOCACHE=/tmp/gocache go install -a std' "$DOCKERFILE_PATH"
85-
86-
# echo "Modified Dockerfile contents (first 50 lines):"
87-
# head -50 "$DOCKERFILE_PATH"
88-
#fi
89-
9070
if [ "$(type)" = "docker-operator-generic-image" ]; then
9171
# Apply patch to Dockerfile
9272
DOCKERFILE_PATH="./images/$(directory)/Dockerfile"
@@ -97,10 +77,10 @@ stages:
9777
echo "Applying nosystemcrypto patch for Microsoft Go build"
9878
9979
# Add ARG and ENV statements to disable systemcrypto for Microsoft Go
100-
sed -i '/^FROM.*builder/a ARG GOEXPERIMENT=nosystemcrypto\nENV GOEXPERIMENT=${GOEXPERIMENT}\nENV CGO_ENABLED=1' "$DOCKERFILE_PATH"
80+
sed -i '/^FROM.*builder/a ARG GOEXPERIMENT=boringcrypto \nENV GOEXPERIMENT=${GOEXPERIMENT}\nENV CGO_ENABLED=1' "$DOCKERFILE_PATH"
10181
10282
# Clear Go module and build caches completely, then rebuild everything with nosystemcrypto
103-
sed -i '/ENV CGO_ENABLED=1/a RUN rm -rf /go/pkg /root/.cache && \\\n mkdir -p /go/pkg /tmp/gocache && \\\n cd /tmp && \\\n GOCACHE=/tmp/gocache CGO_ENABLED=1 go env && \\\n GOCACHE=/tmp/gocache CGO_ENABLED=1 GOEXPERIMENT=nosystemcrypto go install -a -x std' "$DOCKERFILE_PATH"
83+
sed -i '/ENV CGO_ENABLED=1/a RUN rm -rf /go/pkg /root/.cache && \\\n mkdir -p /go/pkg /tmp/gocache && \\\n cd /tmp && \\\n GOCACHE=/tmp/gocache CGO_ENABLED=1 go env && \\\n GOCACHE=/tmp/gocache CGO_ENABLED=1 GOEXPERIMENT=boringcrypto go install -a -x std' "$DOCKERFILE_PATH"
10484
else
10585
echo "Using standard Go build - no GOEXPERIMENT patch needed"
10686
# Just add CGO_ENABLED for consistency

0 commit comments

Comments
 (0)