1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-07 13:31:37 +02:00

fix: update snapcraft command from 'push' to 'upload' (#2051)

as per deprecation message
This commit is contained in:
Ani Channarasappa 2021-02-08 20:40:01 -05:00 committed by GitHub
parent 0824e1d2ea
commit a816d969c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -320,7 +320,7 @@ func push(ctx *context.Context, snap *artifact.Artifact) error {
log.Info("pushing snap")
// TODO: customize --release based on snap.Grade?
/* #nosec */
var cmd = exec.CommandContext(ctx, "snapcraft", "push", "--release=stable", snap.Path)
var cmd = exec.CommandContext(ctx, "snapcraft", "upload", "--release=stable", snap.Path)
if out, err := cmd.CombinedOutput(); err != nil {
if strings.Contains(string(out), reviewWaitMsg) {
log.Warn(reviewWaitMsg)