From 4fb0b7429d57458aaa841d63d9cc4743e4738866 Mon Sep 17 00:00:00 2001 From: Alvar Penning Date: Mon, 9 Sep 2024 09:55:49 +0200 Subject: [PATCH] GHA: Remove -gcflags="-m" from go build According to "go tool compile", the "-m" flag results in "print[ing] optimization decisions". Those are shown on GitHub PRs as errors. In my opinion, this behavior is misleading and has no real benefit. --- .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 f18f8db7e..1b7c36a9b 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -21,7 +21,7 @@ jobs: with: go-version: 1.x - - run: go build -gcflags="-m" ./... + - run: go build ./... - run: go test -v -race ./...