Commit 1087c98
authored
By default go 1.18+ injects version control info into main packages on build. That's fine. But it's buggy and we don't need it anyway since goreleaser does it for us. So I'm disabling it.
Why? If you're building from a linked git worktree (which I do all the time) it'll bomb because go expects the `.git` directory to be the common git root, not a pointer to one. It's a longstanding bug that'll maybe get fixed by go 3.0 golang/go#58218
1 parent a4a8553 commit 1087c98
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
0 commit comments