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

fix: tmpl .386 -> .I386

Template key can't start with a number.

Refs #5186
This commit is contained in:
Carlos Alexandro Becker 2024-10-14 11:29:05 -03:00
parent 205b346215
commit d3ce82ff9f
No known key found for this signature in database
2 changed files with 16 additions and 8 deletions

View File

@ -68,7 +68,7 @@ const (
osKey = "Os"
arch = "Arch"
amd64 = "Amd64"
go386 = "386"
go386 = "I386"
arm = "Arm"
arm64 = "Arm64"
mips = "Mips"

View File

@ -58,6 +58,10 @@ func TestWithArtifact(t *testing.T) {
"6": "{{.Arm}}",
"softfloat": "{{.Mips}}",
"v3": "{{.Amd64}}",
"sse2": "{{.I386}}",
"power8": "{{.Ppc64}}",
"rva22u64": "{{.Riscv64}}",
"v8.0": "{{.Arm64}}",
"1.2.3": "{{.Version}}",
"v1.2.3": "{{.Tag}}",
"1-2-3": "{{.Major}}-{{.Minor}}-{{.Patch}}",
@ -110,13 +114,17 @@ func TestWithArtifact(t *testing.T) {
t.Parallel()
result, err := New(ctx).WithArtifact(
&artifact.Artifact{
Name: "not-this-binary",
Path: "/tmp/foo.exe",
Goarch: "amd64",
Goos: "linux",
Goarm: "6",
Gomips: "softfloat",
Goamd64: "v3",
Name: "not-this-binary",
Path: "/tmp/foo.exe",
Goarch: "amd64",
Goos: "linux",
Goarm: "6",
Gomips: "softfloat",
Goamd64: "v3",
Goarm64: "v8.0",
Go386: "sse2",
Goppc64: "power8",
Goriscv64: "rva22u64",
Extra: map[string]interface{}{
artifact.ExtraBinary: "binary",
artifact.ExtraExt: ".exe",