← Back to issue list

Embedded version required in snapcraft.yaml

View original Launchpad issue

Metadata

Project
snapcraft
Number
#1594794
Type
issue
State
open
Author
~stub
Labels
Created
2016-06-21 12:38:57.449018+00:00
Updated
2017-01-30 15:02:33.829433+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

snapcraft.yaml requires the version key, which is often redundant. Plugins will often know the version number (such as encoded in Python setup.py files), but that is just for a single part. Perhaps the version should optionally accept a part name instead of a version number, causing the version number of the part as reported by the plugin to be used for the snap (or an error raised if the plugin does not support it). The main use case would be have snap version numbers matching upstream for automatic builds, such as done by Launchpad. name: juju-deployer summary: Juju deployment lifecycle management description: Juju deployment lifecycle management version: juju-deployer apps:     juju-deployer:         command: juju-deployer parts:     juju-deployer:         plugin: python3         source: lp:juju-deployer

Evaluation history

No evaluation history available.