snapcraft gives error -
fatal: Not a git repository (or any of the parent directories): .git
snapcraft gives error -
fatal: Not a git repository (or any of the parent directories): .git
Weβre gonna need more information than that:
source:
attribute?override-
scripts or a version-script
?The easiest way to answer most of those is to show us your snapcraft.yaml
or point us to your project files.
am using this simple example from here
that error was because they are using version: git
where it need to be a string.
like version: β1β
changing line makes snap.
ty
this example seems to be broken, it should point to a git tree to clone first, or tell you to do a git init/add/commit/tag
then version: git
should actually work, it is a perfectly valid thing to do (if you are in a git tree) β¦