You've already forked goreleaser
mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-11-06 09:09:29 +02:00
refactory: make easier to manage merges with pro (#3178)
* refactory: improve cmd code Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com> * fix: improve time reporting Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com> * fix: improve artifacts json Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com> * fix: improve artifacts json Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com> * fix: diffs Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com> * docs: improve root cmd help Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
cb70fa5181
commit
9efea360b9
@@ -8,6 +8,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/caarlos0/log"
|
||||
"github.com/goreleaser/goreleaser/internal/artifact"
|
||||
"github.com/goreleaser/goreleaser/pkg/context"
|
||||
)
|
||||
|
||||
@@ -41,6 +42,10 @@ func writeMetadata(ctx *context.Context) error {
|
||||
}
|
||||
|
||||
func writeArtifacts(ctx *context.Context) error {
|
||||
_ = ctx.Artifacts.Visit(func(a *artifact.Artifact) error {
|
||||
a.TypeS = a.Type.String()
|
||||
return nil
|
||||
})
|
||||
return writeJSON(ctx, ctx.Artifacts.List(), "artifacts.json")
|
||||
}
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
[{"name":"foo","path":"foo.txt","goos":"darwin","goarch":"amd64","goarm":"7","type":"Binary","extra":{"foo":"bar"}}]
|
||||
[{"name":"foo","path":"foo.txt","goos":"darwin","goarch":"amd64","goarm":"7","internal_type":4,"type":"Binary","extra":{"foo":"bar"}}]
|
||||
Reference in New Issue
Block a user