FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

getLinuxOSNameVersion fails in debian:unstable/testing docker · Issue #773 · astral-sh/setup-uv · GitHub

Repository navigation

getLinuxOSNameVersion fails in debian:unstable/testing docker #773

Closed

Description

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

Activity

  1. added 5 commits that reference this issue on Feb 27, 2026
    bf89adc
    2582243
    17df894
    e94f85d
    b94d46c
  2. eifinger commented on Feb 27, 2026

    Collaborator
  3. liskin commented on Feb 27, 2026

    Author

    That was quick, thanks! :-)

  4. added a commit that references this issue on Feb 27, 2026
  5. added a commit that references this issue on Feb 28, 2026
    b12532f
  6. added a commit that references this issue on Jul 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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


      Back | FazBrowse Home | New Git URL