snapcraft should be able to autofill the version field based on some property of the build and/or stage files.
Bug #1611439 reported by
Alistair Buxton
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
Medium
|
Sergio Schvezov |
Bug Description
Given the following (incomplete) snap:
name: gmediarender
version: ????????
...
parts:
gmediarender:
plugin: nil
stage-packages:
- gmediarender
...
Here gmediarender is pulled from the Ubuntu archive and staged. I want the snap version to match the deb package version which was staged. There is no way I can know what that is before I run snapcraft and it fetches the package.
A similar problem occurs when I reference a git source URL.
To post a comment you must log in.
Thanks for your report!
I'm not sure about this idea, because it would be an exception for when you have only one part with only one package. Doesn't sound general enough to make it a usable feature, IMO.
Also, in this case you are just turning a deb into a snap. With classic mode that's not required because you could just install the deb.