Repository: gohugoio/hugo (language: go)

Issue:
dart-sass-embedded within the Hugo snap package is incomplete
The Sass team changed the Linux packaging with v1.58.0 and later:
<https://github.com/sass/dart-sass-embedded/issues/150>

Now it's like the Windows and Mac packaging:

```text
├── src/
│   ├── dart*
│   ├── dart-sass-embedded.snapshot*
│   └── LICENSE*
└── dart-sass-embedded*
```

The dart-sass-embedded _script_ calls the dart executable which interacts with the dart-sass-embedded.snapshot. 

So this bit needs to change:
<https://github.com/gohugoio/hugo/blob/master/snap/snapcraft.yaml#L153-L157>

cc @anthonyfok 


Discussion / hints:

Fix patch:
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index 1bce8036e70..8d23f89b61b 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -152,9 +152,9 @@ parts:
       if [[ -n $arch ]]; then
         url=$(curl -s https://api.github.com/repos/sass/dart-sass-embedded/releases/latest | awk -F\" "/browser_download_url.*-linux-${arch}.tar.gz/{print \$(NF-1)}")
         curl -LO --retry-connrefused --retry 10 "$url"
-        tar xf sass_embedded-*-linux-$arch.tar.gz sass_embedded/dart-sass-embedded
+        tar xf sass_embedded-*-linux-$arch.tar.gz
         install -d $SNAPCRAFT_PART_INSTALL/bin
-        cp -av sass_embedded/dart-sass-embedded $SNAPCRAFT_PART_INSTALL/bin/
+        cp -av sass_embedded/* $SNAPCRAFT_PART_INSTALL/bin/
       fi
 
   node:


Test patch: