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:
|
const versionId = parseOsReleaseValue(content, "VERSION_ID"); |
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.)
I'm trying to use
setup-uvin a GHA workflow withcontainer: debian:unstable, but it fails with: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_IDin the unstable/testing version of base-files.Full workflow:
(Works fine with
enable-cache: "fa;se", so that's a workaround for now.)