From 9349fc70367befe7dfff74f8603eba461e27f261 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=8D=9A=E4=BB=81=28Buo-ren=2C=20Lin=29?= Date: Sat, 10 Oct 2020 20:09:42 +0800 Subject: [PATCH] snap: Fix selective-checkout unable to build development snapshots (#1046) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: 林博仁(Buo-ren, Lin) --- snap/snapcraft.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index d0c76143..f458b2c6 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -59,14 +59,20 @@ parts: organize: '*': bin/ - # Check out the tagged release revision if it isn’t 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: - -*