1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-06 03:13:48 +02:00

fix: lint

This commit is contained in:
Carlos Alexandro Becker 2018-10-20 15:16:14 -03:00 committed by Carlos Alexandro Becker
parent 3d87275c09
commit 6310b8c12d

View File

@ -208,6 +208,7 @@ func create(ctx *context.Context, arch string, binaries []artifact.Artifact) err
}
func push(ctx *context.Context, snap artifact.Artifact) error {
/* #nosec */
var cmd = exec.CommandContext(ctx, "snapcraft", "push", "--release=stable", snap.Path)
if out, err := cmd.CombinedOutput(); err != nil {
return fmt.Errorf("failed to push %s package: %s", snap.Path, string(out))