Skip to content

Commit

Permalink
snap: Fix selective-checkout unable to build development snapshots (m…
Browse files Browse the repository at this point in the history
…ikf#1046)

Due to recent `snap info` command output changes selective-checkout no
longer can match the stable channel version, which, making it always
building stable releases even when it is being promoted to the stable
channel.

This patch fixes the problem by upgrading the part to the new version,
which now call the Snap Store API for the info instead of scraping the
`snap info gallery-dl` command's output, which should ensure stability
in the future.

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>
Signed-off-by: 林博仁(Buo-ren, Lin) <[email protected]>
  • Loading branch information
brlin-tw authored Oct 10, 2020
1 parent faeea59 commit 9349fc7
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,20 @@ parts:
organize:
'*': bin/

# Check out the tagged release revision if it isnt promoted to the stable channel
# Check out the tagged release revision if it isn't promoted to the stable channel
# https://forum.snapcraft.io/t/selective-checkout-check-out-the-tagged-release-revision-if-it-isnt-promoted-to-the-stable-channel/10617
selective-checkout:
plugin: nil
source: https://github.com/Lin-Buo-Ren/selective-checkout.git
source-tag: v2.0.0
plugin: dump
build-packages:
# Scriptlet dependencies
- curl
- git
stage-snaps:
- selective-checkout
- jq
- sed
stage:
- scriptlets/selective-checkout
prime:
- -*

Expand Down

0 comments on commit 9349fc7

Please sign in to comment.