From d5c57c129494154dd8bd7e834f93954164241339 Mon Sep 17 00:00:00 2001 From: Pedram Hadjian Date: Mon, 4 Dec 2023 10:58:09 +0100 Subject: [PATCH] chore(workflows): added CGO_ENABLED=0 to go build - We will use this env var setting for a release to work with alpine - Mirroring this here so the build behaviors are identical --- .github/workflows/go.yml | 4 ++-- .gitignore | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 8898364e..a2173be4 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -25,7 +25,7 @@ jobs: uses: Jerome1337/goimports-action@v1.0.3 - name: Build - run: go build -v ./... + run: CGO_ENABLED=0 go build -v ./... - name: Test - run: go test -v ./... + run: CGO_ENABLED=0 go test -v ./... diff --git a/.gitignore b/.gitignore index 61d7f692..ed4cdf93 100644 --- a/.gitignore +++ b/.gitignore @@ -23,8 +23,12 @@ go.work # IntelliJ .idea/ -# Emacs tmp files +# Emacs +.dir-locals.el + +# Various tmp files *~ +*.swp # tm-catalog-cli configuration config.json