1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

refactor: make it easier to merge

This commit is contained in:
Carlos A Becker 2022-08-01 15:58:39 -03:00
parent 1a54007a18
commit 05b3fbd305
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -101,11 +101,17 @@ func (Pipe) Run(ctx *context.Context) error {
for group, artifacts := range artifacts {
log.Debugf("group %s has %d binaries", group, len(artifacts))
artifacts := artifacts
g.Go(func() error {
if packageFormat(archive, artifacts[0].Goos) == "binary" {
if packageFormat(archive, artifacts[0].Goos) == "binary" {
g.Go(func() error {
return skip(ctx, archive, artifacts)
})
continue
}
g.Go(func() error {
if err := create(ctx, archive, artifacts); err != nil {
return err
}
return create(ctx, archive, artifacts)
return nil
})
}
}