Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
snappy: support generation of short binary names #688
Conversation
niemeyer
reviewed
Mar 18, 2016
| "github.com/ubuntu-core/snappy/snap/snapenv" | ||
| ) | ||
| // generate the name | ||
| func generateBinaryName(m *snapYaml, app *AppYaml) string { | ||
| var binName string | ||
| - if m.Type == snap.TypeFramework { | ||
| + if app.Name == m.Name { | ||
| binName = filepath.Base(app.Name) |
niemeyer
Mar 18, 2016
Contributor
Slightly surprising to see filepath.Base here. We should never have a path in the app name.
We need to validate those elsewhere if we're not yet doing that.
zyga
Mar 18, 2016
Contributor
I have a similar function in interfaces WrapperNameForApp. We should de-dupe at some point.
|
LGTM! |
|
+1 |
|
|
added a commit
that referenced
this pull request
Mar 21, 2016
mvo5
merged commit 086441c
into
snapcore:master
Mar 21, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mvo5 commentedMar 18, 2016
This branch modifies generateBinaryName to generate a short name if the appname and the snapname match. This prepares the removal of frameworks.