Skip to content

Commit 40c7450

Browse files
jsburckhardtCopilot
andcommitted
fix(yazi): use musl builds to avoid GLIBC_2.39 requirement
Yazi's -unknown-linux-gnu releases now require GLIBC 2.39, which is newer than what Debian/Ubuntu stable base images provide, causing installs to fail with a GLIBC_2.39 error. Switch x86_64 and aarch64 installs to the statically-linked -musl variant. i686 keeps -gnu since no musl asset is published for it. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 072b986 commit 40c7450

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

src/yazi/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Yazi",
33
"id": "yazi",
4-
"version": "1.0.0",
4+
"version": "1.0.1",
55
"description": "Blazing fast terminal file manager written in Rust, based on async I/O.",
66
"options": {
77
"version": {

src/yazi/install.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,21 @@ fi
4747
# Determine the OS and architecture
4848
ARCH=$(uname -m)
4949

50+
# Prefer musl builds (statically linked) so the binary doesn't depend on
51+
# the host's GLIBC version. Recent yazi releases require GLIBC >= 2.39 for
52+
# the -gnu builds, which is newer than Debian/Ubuntu stable provide.
5053
case "$ARCH" in
5154
x86_64)
5255
ARCH="x86_64"
56+
LIBC="musl"
5357
;;
5458
aarch64)
5559
ARCH="aarch64"
60+
LIBC="musl"
5661
;;
5762
i686)
5863
ARCH="i686"
64+
LIBC="gnu"
5965
;;
6066
*)
6167
echo "Unsupported architecture: $ARCH"
@@ -64,8 +70,8 @@ case "$ARCH" in
6470
esac
6571

6672
# Construct the download URL
67-
# Asset pattern: yazi-{ARCH}-unknown-linux-gnu.zip
68-
ASSET_NAME="${BINARY_NAME}-${ARCH}-unknown-linux-gnu"
73+
# Asset pattern: yazi-{ARCH}-unknown-linux-{LIBC}.zip
74+
ASSET_NAME="${BINARY_NAME}-${ARCH}-unknown-linux-${LIBC}"
6975
DOWNLOAD_URL="https://github.com/${REPO_OWNER}/${REPO_NAME}/releases/download/${YAZI_VERSION}/${ASSET_NAME}.zip"
7076

7177
# Create a temporary directory for the download

0 commit comments

Comments
 (0)