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:
parent
0824e1d2ea
commit
a816d969c9
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user