From 3137204860d3d5380e58b945c86ada47f4804eb4 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Mon, 13 Dec 2021 19:16:13 +0100 Subject: [PATCH] GOFLAGS="-buildmode=pie" Position-independent executables --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index e7a5b4f..6822fa0 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -15,7 +15,7 @@ jobs: - name: Build run: | - export GOFLAGS="-trimpath" + export GOFLAGS="-buildmode=pie -trimpath" go version go build . GOOS=windows go build .