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

Merge pull request #262 from dominikschulz/fix/capturefpm

Add missing loop variable capture
This commit is contained in:
Carlos Alexandro Becker 2017-06-19 08:43:53 -03:00 committed by GitHub
commit e86c63c69a

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