You've already forked goreleaser
mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-06-23 00:40:06 +02:00
refactor: put common extra keys in the artifact package (#2580)
* refactor: put common extra keys in the artifact package Signed-off-by: Carlos A Becker <caarlos0@gmail.com> * refactor: common extra fields have their own funcs Signed-off-by: Carlos A Becker <caarlos0@gmail.com> * refactor: 2 more Signed-off-by: Carlos A Becker <caarlos0@gmail.com> * fix: review Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
This commit is contained in:
committed by
GitHub
parent
160d97af40
commit
df2f00fc8b
@ -162,8 +162,8 @@ func TestRun(t *testing.T) {
|
||||
Goarch: arch,
|
||||
Type: artifact.Binary,
|
||||
Extra: map[string]interface{}{
|
||||
"Binary": "fake",
|
||||
"ID": "foo",
|
||||
artifact.ExtraBinary: "fake",
|
||||
artifact.ExtraID: "foo",
|
||||
},
|
||||
}
|
||||
ctx1.Artifacts.Add(&art)
|
||||
@ -175,8 +175,8 @@ func TestRun(t *testing.T) {
|
||||
Goarch: arch,
|
||||
Type: artifact.Binary,
|
||||
Extra: map[string]interface{}{
|
||||
"Binary": "fake",
|
||||
"ID": "foo",
|
||||
artifact.ExtraBinary: "fake",
|
||||
artifact.ExtraID: "foo",
|
||||
},
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user