1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

breaking: do not default to uname values

check discussion on #236

closes #236
This commit is contained in:
Carlos Alexandro Becker 2017-05-18 12:44:55 -03:00
parent ca3c485a58
commit 777441c45e
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
3 changed files with 6 additions and 3 deletions

View File

@ -276,8 +276,6 @@ archive:
# Replacements for GOOS and GOARCH on the archive name.
# The keys should be valid GOOS or GOARCH values followed by your custom
# replacements.
# By default, `replacements` replace GOOS and GOARCH values with valid outputs
# of `uname -s` and `uname -m` respectively.
replacements:
amd64: 64-bit
386: 32-bit

View File

@ -13,6 +13,12 @@ build:
- arm
- arm64
archive:
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip

View File

@ -34,7 +34,6 @@ func TestFillBasicData(t *testing.T) {
assert.Contains(ctx.Config.Build.Goarch, "amd64")
assert.Contains(ctx.Config.Brew.Install, "bin.install \"goreleaser\"")
assert.NotEmpty(
ctx.Config.Archive.Replacements,
ctx.Config.Archive.NameTemplate,
ctx.Config.Build.Ldflags,
ctx.Config.Archive.Files,