Skip to content

Commit 6e05c1f

Browse files
use scorecard as binary name for all release builds
Previously, the binary name included the build platform which complicated running Scorecard after extracting the tarball. As all binaries now share the same name, we need a unique folder for each binary, so also removes `no_unique_dist_dir`. ossf#4517 Signed-off-by: Spencer Schrock <[email protected]>
1 parent 2d95671 commit 6e05c1f

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.goreleaser.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ gomod:
1111
proxy: true
1212
builds:
1313
- id: linux
14-
binary: scorecard-linux-{{ .Arch }}
15-
no_unique_dist_dir: true
14+
binary: scorecard
1615
flags:
1716
# trimpath is for reproducible builds
1817
# remove all file system paths from the resulting executable.
@@ -36,8 +35,7 @@ builds:
3635
- -s {{.Env.VERSION_LDFLAGS}}
3736

3837
- id: darwin
39-
binary: scorecard-darwin-{{ .Arch }}
40-
no_unique_dist_dir: true
38+
binary: scorecard
4139
flags:
4240
# trimpath is for reproducible builds
4341
# remove all file system paths from the resulting executable.
@@ -61,8 +59,7 @@ builds:
6159
- -s {{.Env.VERSION_LDFLAGS}}
6260

6361
- id: windows
64-
binary: scorecard-windows-{{ .Arch }}
65-
no_unique_dist_dir: true
62+
binary: scorecard
6663
flags:
6764
# trimpath is for reproducible builds
6865
# remove all file system paths from the resulting executable.

0 commit comments

Comments
 (0)