From 4b7367fdcc68a376da8c9794e8da6c43f2bd7c1f Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Wed, 27 Jul 2022 14:08:52 -0700 Subject: [PATCH] Set sqlite_omit_load_extension flag when building to disable sqlite feature --- Earthfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Earthfile b/Earthfile index 98f3554d3..4a8b846d6 100644 --- a/Earthfile +++ b/Earthfile @@ -74,7 +74,7 @@ build: WORKDIR /build # MacOSX disallows static executables, so we omit the static flag on this platform - RUN go build -a -installsuffix cgo -ldflags "$([ "$GOOS"z != darwinz ] && echo "-linkmode external -extldflags -static ") -s -w -X github.com/owncast/owncast/config.GitCommit=$EARTHLY_GIT_HASH -X github.com/owncast/owncast/config.VersionNumber=$version -X github.com/owncast/owncast/config.BuildPlatform=$NAME" -o owncast main.go + RUN go build -a -installsuffix cgo -ldflags "$([ "$GOOS"z != darwinz ] && echo "-linkmode external -extldflags -static ") -s -w -X github.com/owncast/owncast/config.GitCommit=$EARTHLY_GIT_HASH -X github.com/owncast/owncast/config.VersionNumber=$version -X github.com/owncast/owncast/config.BuildPlatform=$NAME" -tags sqlite_omit_load_extension -o owncast main.go COPY +tailwind/prod-tailwind.min.css /build/dist/webroot/js/web_modules/tailwindcss/dist/tailwind.min.css SAVE ARTIFACT owncast owncast