1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-07-03 00:57:43 +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

@ -91,7 +91,7 @@ func TestMinioUpload(t *testing.T) {
Name: "source.tar.gz",
Path: srcpath,
Extra: map[string]interface{}{
"Format": "tar.gz",
artifact.ExtraFormat: "tar.gz",
},
})
ctx.Artifacts.Add(&artifact.Artifact{
@ -99,7 +99,7 @@ func TestMinioUpload(t *testing.T) {
Name: "bin.tar.gz",
Path: tgzpath,
Extra: map[string]interface{}{
"ID": "foo",
artifact.ExtraID: "foo",
},
})
ctx.Artifacts.Add(&artifact.Artifact{
@ -107,7 +107,7 @@ func TestMinioUpload(t *testing.T) {
Name: "bin.deb",
Path: debpath,
Extra: map[string]interface{}{
"ID": "bar",
artifact.ExtraID: "bar",
},
})