1
0
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:
Carlos Alexandro Becker
2021-10-16 22:46:11 -03:00
committed by GitHub
parent 160d97af40
commit df2f00fc8b
30 changed files with 262 additions and 239 deletions

View File

@ -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",
},
})
}