mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21:49 +00:00
snap: Fix snapcraft builds #12879
* Use upstream git repo as snap source. * Fix typo in snapcraft.yaml Use latest_tag instead of branch because branch is undefined.
This commit is contained in:
@@ -25,7 +25,7 @@ apps:
|
|||||||
|
|
||||||
parts:
|
parts:
|
||||||
nvim:
|
nvim:
|
||||||
source: .
|
source: https://github.com/neovim/neovim.git
|
||||||
override-pull: |
|
override-pull: |
|
||||||
snapcraftctl pull
|
snapcraftctl pull
|
||||||
latest_tag="$(git tag -l --sort=refname|head -1)"
|
latest_tag="$(git tag -l --sort=refname|head -1)"
|
||||||
@@ -37,9 +37,9 @@ parts:
|
|||||||
git_described="$(git describe --first-parent --dirty 2> /dev/null | perl -lpe 's/v\d.\d.\d-//g')"
|
git_described="$(git describe --first-parent --dirty 2> /dev/null | perl -lpe 's/v\d.\d.\d-//g')"
|
||||||
git_described="${git_described:-$(git describe --first-parent --tags --always --dirty)}"
|
git_described="${git_described:-$(git describe --first-parent --tags --always --dirty)}"
|
||||||
if [ "${version_prefix}" != "${git_described}" ]; then
|
if [ "${version_prefix}" != "${git_described}" ]; then
|
||||||
VERSION="${version_prefix}-${git_described}-${branch}"
|
VERSION="${version_prefix}-${git_described}-${latest_tag}"
|
||||||
else
|
else
|
||||||
VERSION="${version_prefix}-${branch}"
|
VERSION="${version_prefix}-${latest_tag}"
|
||||||
fi
|
fi
|
||||||
snapcraftctl set-version "${VERSION}"
|
snapcraftctl set-version "${VERSION}"
|
||||||
plugin: make
|
plugin: make
|
||||||
|
Reference in New Issue
Block a user