From b4365f5c5457aeed98cd93a9c25a745442451de3 Mon Sep 17 00:00:00 2001 From: Jamie Curnow Date: Fri, 26 May 2023 22:06:06 +1000 Subject: [PATCH] Enable Cgo again for use with embedded dbmate --- docker/Dockerfile | 1 + docker/dev/Dockerfile | 1 + scripts/ci/build-backend | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 5c685e73..bc77cffb 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -18,6 +18,7 @@ ARG SENTRY_DSN ENV BUILD_COMMIT="${BUILD_COMMIT:-dev}" \ BUILD_VERSION="${BUILD_VERSION:-0.0.0}" \ + CGO_ENABLED=1 \ GOPRIVATE="${GOPRIVATE:-}" \ GOPROXY="${GOPROXY:-}" \ SENTRY_DSN="${SENTRY_DSN:-}" diff --git a/docker/dev/Dockerfile b/docker/dev/Dockerfile index 970d86f3..e374073a 100644 --- a/docker/dev/Dockerfile +++ b/docker/dev/Dockerfile @@ -11,6 +11,7 @@ ARG GOPRIVATE ENV ACMESH_CONFIG_HOME=/data/.acme.sh/config \ ACMESH_HOME=/data/.acme.sh \ CERT_HOME=/data/.acme.sh/certs \ + CGO_ENABLED=1 \ GOPROXY=$GOPROXY \ GOPRIVATE=$GOPRIVATE \ LE_CONFIG_HOME=/data/.acme.sh/config \ diff --git a/scripts/ci/build-backend b/scripts/ci/build-backend index a8a03498..a4a4b8c5 100755 --- a/scripts/ci/build-backend +++ b/scripts/ci/build-backend @@ -20,7 +20,7 @@ if [ "$BUILD_VERSION" = "" ]; then BUILD_VERSION=$(cat .version) fi -export CGO_ENABLED=0 +export CGO_ENABLED=1 export GO111MODULE=on echo -e "${BLUE}❯ ${GREEN}build-backend:${RESET}"