]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
snap: Address snapcraft deprecations
authorJoe Mooring <joe@mooring.com>
Tue, 2 Dec 2025 07:44:24 +0000 (23:44 -0800)
committerGitHub <noreply@github.com>
Tue, 2 Dec 2025 07:44:24 +0000 (23:44 -0800)
snap/snapcraft.yaml

index 5f59ef9f31edfb9fc50cbf1065470702c5cc3255..72672911b6673c51599cde9945cc4fc2544e57c9 100644 (file)
@@ -68,7 +68,7 @@ environment:
   npm_config_userconfig: $SNAP_USER_DATA/.npmrc
   pandoc_datadir: $SNAP/usr/share/pandoc
   PYTHONHOME: /usr:$SNAP/usr
-  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
+  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
 
   # HUGO_SECURITY_EXEC_OSENV
   #
@@ -177,7 +177,7 @@ parts:
     override-build: |
       set -ex
       craftctl default
-      case "$CRAFT_TARGET_ARCH" in
+      case "$CRAFT_ARCH_BUILD_FOR" in
         amd64)  arch=x64    ;;
         arm64)  arch=arm64  ;;
         armhf)  arch=arm    ;;