snapcraft-parser -v prints devel
Bug #1590266 reported by
Leo Arias
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
Low
|
Joe Talbott |
Bug Description
When I run snapcraft-parser -v I get:
devel
The version number should be printed instead.
Changed in snapcraft: | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in snapcraft: | |
assignee: | nobody → Joe Talbott (joetalbott) |
Changed in snapcraft: | |
status: | Triaged → Confirmed |
status: | Confirmed → In Progress |
Changed in snapcraft: | |
status: | In Progress → Fix Committed |
milestone: | none → 2.24 |
importance: | Medium → Low |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This is the current function that completes this:
def _get_version(): require( 'snapcraft' )[0].version DistributionNot Found:
try:
return pkg_resources.
except pkg_resources.
return 'devel'
We need a better solution.