Skip to content

getLinuxOSNameVersion fails in debian:unstable/testing docker #773

@liskin

Description

@liskin

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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions