Setting release version in snapcraft build

Stuart Bishop stuart.bishop at canonical.com
Fri Sep 2 08:38:06 UTC 2016


On 2 September 2016 at 15:01, Stuart Bishop <stuart.bishop at canonical.com>
wrote:

>
>
> On 2 September 2016 at 00:46, Leo Arias <leo.arias at canonical.com> wrote:
>
>> This is a pain point for me too. Most upstreams store the version number
>> in only one place, because editing more than one for every tagged
>> release is too boring.
>>
>
> This is what https://bugs.launchpad.net/snapcraft/+bug/1594794 is about.
>
> The plugin can extract a version number in many cases (and plugins could
> be added that just do this - eg. pull the version from debian/changelog or
> git tags | grep release | naturalsort | tail -1 or run staging/usr/bin/foo
> --version or whatever). So a particular part might know its version, and we
> could declare which part's version is used for the snap. No need to specify
> anything on the command line, and it would work with Launchpad without
> extra work.
>

(Or if that is too complicated, just a command that is run at the end of
staging or at the start of priming to generate the version number)


-- 
Stuart Bishop <stuart.bishop at canonical.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20160902/39fa1b6a/attachment.html>


More information about the Snapcraft mailing list