1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

fix: snap package apps with multiple binaries (#1449)

This commit is contained in:
Aggelos Kolaitis 2020-04-17 19:24:32 +02:00 committed by GitHub
parent daa4501568
commit 20e3718a56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,