Skip to content

Commit 596517a

Browse files
authored
snap: Address snapcraft deprecations
1 parent bf42138 commit 596517a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎snap/snapcraft.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ environment:
6868
npm_config_userconfig: $SNAP_USER_DATA/.npmrc
6969
pandoc_datadir: $SNAP/usr/share/pandoc
7070
PYTHONHOME: /usr:$SNAP/usr
71-
RUBYLIB: $SNAP/usr/lib/ruby/vendor_ruby/3.0.0:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/ruby/vendor_ruby/3.0.0:$SNAP/usr/lib/ruby/vendor_ruby:$SNAP/usr/lib/ruby/3.0.0:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/ruby/3.0.0
71+
RUBYLIB: $SNAP/usr/lib/ruby/vendor_ruby/3.0.0:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/ruby/vendor_ruby/3.0.0:$SNAP/usr/lib/ruby/vendor_ruby:$SNAP/usr/lib/ruby/3.0.0:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/ruby/3.0.0
7272

7373
# HUGO_SECURITY_EXEC_OSENV
7474
#
@@ -177,7 +177,7 @@ parts:
177177
override-build: |
178178
set -ex
179179
craftctl default
180-
case "$CRAFT_TARGET_ARCH" in
180+
case "$CRAFT_ARCH_BUILD_FOR" in
181181
amd64) arch=x64 ;;
182182
arm64) arch=arm64 ;;
183183
armhf) arch=arm ;;

0 commit comments

Comments
 (0)