1
0
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:
Carlos A Becker 2023-01-10 22:24:05 -03:00
parent 0fe8b8dc21
commit af38a4c6d3
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

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