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

Add missing loop variable capture

Fixes #261
This commit is contained in:
Dominik Schulz 2017-06-19 09:57:56 +02:00
parent a91296d70f
commit f6abdf3c27

View File

@ -40,6 +40,7 @@ func (Pipe) Run(ctx *context.Context) error {
var g errgroup.Group
for _, format := range ctx.Config.FPM.Formats {
format := format
for _, goarch := range ctx.Config.Build.Goarch {
if ctx.Archives["linux"+goarch] == "" {
continue