snapcraft assign special meaning to version:git

Bug #1716363 reported by Harald Sitter
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapcraft (Ubuntu)
New
Undecided
Unassigned

Bug Description

A snapcraft.yaml with `version: git` has special meaning to snapcraft, supposedly that the version should be picked from the git ref of the repo clone where the snapcraft.yaml lives.

This results in failed snapcrafting when the directory is in fact not a git clone at all

Determining the version from the project repo (version: git).
fatal: Not a git repository (or any of the parent directories): .git

This behavior entirely undocumented outside the crappy error after building.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.