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

fix: snapcraft snap deprecated

This commit is contained in:
Carlos Alexandro Becker 2018-02-04 16:11:19 -02:00 committed by Carlos Alexandro Becker
parent 206c8cb326
commit 2b959e0c91

View File

@ -163,7 +163,7 @@ func create(ctx *context.Context, arch string, binaries []artifact.Artifact) err
var snap = filepath.Join(ctx.Config.Dist, folder+".snap")
/* #nosec */
var cmd = exec.CommandContext(ctx, "snapcraft", "snap", primeDir, "--output", snap)
var cmd = exec.CommandContext(ctx, "snapcraft", "pack", primeDir, "--output", snap)
if out, err = cmd.CombinedOutput(); err != nil {
return fmt.Errorf("failed to generate snap package: %s", string(out))
}