Skip to content

Commit

Permalink
GHA: Remove -gcflags="-m" from go build
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
oxzi committed Sep 9, 2024
1 parent 806a2ff commit 4fb0b74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
with:
go-version: 1.x

- run: go build -gcflags="-m" ./...
- run: go build ./...

- run: go test -v -race ./...

Expand Down

0 comments on commit 4fb0b74

Please sign in to comment.