Skip to content

Commit a1d6813

Browse files
authored
fix(apk): handle all/noarch (#1034)
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
1 parent d3c4f29 commit a1d6813

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

apk/apk.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ func init() {
6161
// https://github.com/golang/go/blob/master/src/internal/syslist/syslist.go
6262
// nolint: gochecknoglobals
6363
var archToAlpine = map[string]string{
64+
"all": "noarch",
6465
"386": "x86",
6566
"amd64": "x86_64",
6667
"arm64": "aarch64",

apk/apk_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ func TestAPKConventionalFileName(t *testing.T) {
518518
},
519519
{
520520
Arch: "all", Version: "1.2.3",
521-
Expect: "default_1.2.3_all.apk",
521+
Expect: "default_1.2.3_noarch.apk",
522522
},
523523
{
524524
Arch: "386", Version: "1.2.3", Release: "1", Prerelease: "beta1",

0 commit comments

Comments
 (0)