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:
parent
206c8cb326
commit
2b959e0c91
@ -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))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user