From 7fbf1215a414681c7348778f7e8da848661073dd Mon Sep 17 00:00:00 2001 From: i404788 <404788@student.fontys.nl> Date: Sun, 21 Aug 2022 23:03:11 +0200 Subject: [PATCH] Workaround https://github.com/golang/go/issues/54313 until golang 1.20 --- cmd/seaweedfs-csi-driver/Dockerfile | 2 ++ cmd/seaweedfs-csi-driver/Dockerfile.dev | 2 ++ 2 files changed, 4 insertions(+) diff --git a/cmd/seaweedfs-csi-driver/Dockerfile b/cmd/seaweedfs-csi-driver/Dockerfile index 33d2d17..73086a2 100644 --- a/cmd/seaweedfs-csi-driver/Dockerfile +++ b/cmd/seaweedfs-csi-driver/Dockerfile @@ -1,4 +1,6 @@ FROM golang:1.19-alpine as builder +# Can be removed at golang 1.20 +ENV CGO_CFLAGS=-fno-stack-protector RUN apk add git g++ diff --git a/cmd/seaweedfs-csi-driver/Dockerfile.dev b/cmd/seaweedfs-csi-driver/Dockerfile.dev index 0cfd28c..ea7f8d0 100644 --- a/cmd/seaweedfs-csi-driver/Dockerfile.dev +++ b/cmd/seaweedfs-csi-driver/Dockerfile.dev @@ -1,4 +1,6 @@ FROM golang:1.19-alpine as builder +# Can be removed at golang 1.20 +ENV CGO_CFLAGS=-fno-stack-protector RUN apk add git g++ RUN mkdir -p /go/src/github.com/chrislusf/