I'm trying to use setup-uv in a GHA workflow with container: debian:unstable, but it fails with:
Error: Failed to determine Linux distribution. Could not read /etc/os-release or /usr/lib/os-release
I believe this is because if enable-cache: "true" (the default), this line raises:
setup-uv/src/utils/platforms.ts
Line 108 in 0098a75
There's no VERSION_ID in the unstable/testing version of base-files.
Full workflow:
name: XXX on: push: jobs: xxx: runs-on: ubuntu-latest container: debian:unstable steps: - name: Install prerequisites via apt env: DEBIAN_FRONTEND: noninteractive run: | set -ex apt update apt install -y git - uses: actions/checkout@v6 - name: Install uv uses: astral-sh/setup-uv@v7
(Works fine with enable-cache: "fa;se", so that's a workaround for now.)
fix: support debian:unstable/testing by falling back to VERSION_CODENAME
Release https://github.com/astral-sh/setup-uv/releases/tag/v7.3.1 fixes this
That was quick, thanks! :-)
Re-enable uv cache in check-distro
fix: fall back to VERSION_CODENAME when VERSION_ID is not available (a…
fix: fall back to distribution ID when os-release has no version field (
Activity
fix: support debian:unstable/testing by falling back to VERSION_CODENAME
fix: support debian:unstable/testing by falling back to VERSION_CODENAME
fix: support debian:unstable/testing by falling back to VERSION_CODENAME
fix: support debian:unstable/testing by falling back to VERSION_CODENAME
fix: support debian:unstable/testing by falling back to VERSION_CODENAME
eifinger commented on Feb 27, 2026
Release https://github.com/astral-sh/setup-uv/releases/tag/v7.3.1 fixes this
liskin commented on Feb 27, 2026
That was quick, thanks! :-)
Re-enable uv cache in check-distro
fix: fall back to VERSION_CODENAME when VERSION_ID is not available (a…
fix: fall back to distribution ID when os-release has no version field (