snap: Incorporate selective-checkout to ensure a revision for stable channel is always available

Refer-to: Selective-checkout: Check out the tagged release revision if it isn't promoted to the stable channel - doc - snapcraft.io <https://forum.snapcraft.io/t/selective-checkout-check-out-the-tagged-release-revision-if-it-isnt-promoted-to-the-stable-channel/10617>
Refer-to: Releasing your app - Documentation for snaps: Universal Linux packages <https://docs.snapcraft.io/releasing-your-app/6795>
Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>
This commit is contained in:
林博仁(Buo-ren Lin) committed 2019-04-12 01:08:58 +08:00
1 parent 15a9925d2a
commit 6fdf37ef89
1 file changed
+11 -2
+11 -2
View File
@@ -43,6 +43,8 @@ plugs:
parts:
glances:
after:
- selective-checkout
plugin: python
source: .
# FIXME: Theoretically this also replaces `summary` and `description`
@@ -52,8 +54,7 @@ parts:
parse-info: [setup.py]
override-pull: |
snapcraftctl pull
snapcraftctl set-version \
"$(git describe --always --dirty --tags --match 'v*' | sed s/^v//)"
"$SNAPCRAFT_STAGE"/scriptlets/selective-checkout
bottle:
plugin: python
source: https://github.com/bottlepy/bottle.git
@@ -69,3 +70,11 @@ parts:
plugin: dump
organize:
'*': bin/
selective-checkout:
plugin: nil
build-packages:
- git
stage-snaps:
- selective-checkout
prime:
- -*