You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Bun's musl binary and the Supabase CLI shim both dynamically link libstdc++ and libgcc.
74
+
if command -v apk >/dev/null 2>&1; then
75
+
missing_packages=""
76
+
for package in libstdc++ libgcc; do
77
+
if ! apk info -e "${package}" >/dev/null 2>&1; then
78
+
missing_packages="${missing_packages} ${package}"
79
+
fi
80
+
done
81
+
82
+
if [ -z "${missing_packages}" ]; then
83
+
exit 0
84
+
fi
85
+
86
+
if [ "$(id -u)" != "0" ]; then
87
+
echo "::error::Alpine/musl containers need${missing_packages} to run Supabase CLI. Add 'apk add --no-cache${missing_packages}' before supabase/setup-cli, or run this job container as root."
88
+
exit 1
89
+
fi
90
+
91
+
apk add --no-cache ${missing_packages}
92
+
exit 0
93
+
fi
94
+
95
+
echo "::error::Linux musl containers need libstdc++ and libgcc to run Supabase CLI. Install them before supabase/setup-cli."
0 commit comments