mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-04 03:11:55 +02:00
fix: toslash artifact paths on metadata.json
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
parent
0fe8b8dc21
commit
af38a4c6d3
@ -44,6 +44,7 @@ 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()
|
||||
a.Path = filepath.ToSlash(filepath.Clean(a.Path))
|
||||
return nil
|
||||
})
|
||||
return writeJSON(ctx, ctx.Artifacts.List(), "artifacts.json")
|
||||
|
Loading…
Reference in New Issue
Block a user