Skip to content

Commit

Permalink
fix: snap package apps with multiple binaries (#1449)
Browse files Browse the repository at this point in the history
  • Loading branch information
neoaggelos committed Apr 17, 2020
1 parent daa4501 commit 20e3718
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/pipe/snapcraft/snapcraft.go
Expand Up @@ -228,12 +228,14 @@ func create(ctx *context.Context, snap config.Snapcraft, arch string, binaries [
// setup the apps: directive for each binary
for name, config := range snap.Apps {
log.WithField("path", binary.Path).
WithField("name", binary.Name).
WithField("name", name).
Debug("passed binary to snapcraft")

// TODO: test that the correct binary is used in Command
// See https://github.com/goreleaser/goreleaser/pull/1449
appMetadata := AppMetadata{
Command: strings.TrimSpace(strings.Join([]string{
binary.Name,
name,
config.Args,
}, " ")),
Plugs: config.Plugs,
Expand Down

0 comments on commit 20e3718

Please sign in to comment.