snap: modern cabal no longer have sandbox subcommand

Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
This commit is contained in:
Simon Deziel
2025-06-18 13:09:33 -04:00
parent fa99cfd355
commit 310932be8e

View File

@@ -49,9 +49,8 @@ parts:
mkswap /tmp/swap mkswap /tmp/swap
swapon /tmp/swap swapon /tmp/swap
cabal sandbox init
cabal update cabal update
cabal install -j cabal install -j
install -d "${CRAFT_PART_INSTALL}/usr/bin" install -d "${CRAFT_PART_INSTALL}/usr/bin"
install .cabal-sandbox/bin/shellcheck "${CRAFT_PART_INSTALL}/usr/bin" install ~/.cabal/bin/shellcheck "${CRAFT_PART_INSTALL}/usr/bin"