fix: fall back to distribution ID when os-release has no version field - #961
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3ca5dccb21
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if (id) { | ||
| return id; |
There was a problem hiding this comment.
Defer ID-only fallback until both files are checked
If /etc/os-release exists with only ID while /usr/lib/os-release still contains VERSION_ID, VERSION_CODENAME, or BUILD_ID, this return now short-circuits before the second file is inspected. Since getOSNameVersion() feeds the cache key, those images lose the more specific OS version component and can start sharing caches across OS versions; keep the ID-only value as a final fallback after all release files have been tried.
Useful? React with 👍 / 👎.
|
Follow-up on the review point about short-circuiting: the initial commit returned the ID-only fallback inside the per-file loop, so an ID-only 019f04a defers the ID-only fallback until all os-release files have been tried. Re-verified against the compiled function:
|
|
@codex please review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 019f04aa09
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
eifinger
left a comment
There was a problem hiding this comment.
Looks good. Thank you!
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [https://github.com/astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) | action | major | `v8.3.2` → `v9.0.0` | --- ### Release Notes <details> <summary>astral-sh/setup-uv (https://github.com/astral-sh/setup-uv)</summary> ### [`v9.0.0`](https://github.com/astral-sh/setup-uv/releases/tag/v9.0.0): 🌈 Change `prune-cache` default to `false` [Compare Source](astral-sh/setup-uv@v8.3.2...v9.0.0) #### Changes This release disables the default cache cache pruning to ease the load on the PyPi infrastructure. Since users might experience more GitHub Actions cache usage which might result in higher costs this is marked as a breaking change. To read more on why we did this (now) you can read the detailed analysis and reasoning in [#​967](astral-sh/setup-uv#967) Besides this big breaking change we also have a small bugfix while building caches for linux distributions that behave a big different than the "big ones" and a speed up in version resolution by only reading the version manifest until a matching version is found saving runtime and network bandwith. #### 🚨 Breaking changes - Change `prune-cache` default to `false` [@​charliermarsh](https://github.com/charliermarsh) ([#​967](astral-sh/setup-uv#967)) #### 🐛 Bug fixes - fix: fall back to distribution ID when os-release has no version field [@​cxzhong](https://github.com/cxzhong) ([#​961](astral-sh/setup-uv#961)) #### 🚀 Enhancements - Speed up version client by partial response reads [@​eifinger](https://github.com/eifinger) ([#​807](astral-sh/setup-uv#807)) #### 🧰 Maintenance - chore: update known checksums for 0.11.30 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​968](astral-sh/setup-uv#968)) - chore: update known checksums for 0.11.29 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​960](astral-sh/setup-uv#960)) #### 📚 Documentation - docs: update version references to v8.3.2 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​949](astral-sh/setup-uv#949)) #### ⬆️ Dependency updates - chore(deps): roll up Dependabot updates [@​eifinger](https://github.com/eifinger) ([#​970](astral-sh/setup-uv#970)) - chore(deps): roll up Dependabot updates [@​eifinger](https://github.com/eifinger) ([#​962](astral-sh/setup-uv#962)) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNzMuMCIsInVwZGF0ZWRJblZlciI6IjQzLjI3My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Reviewed-on: https://git.foxden.network/FoxDen/core/pulls/136
#14) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) | action | major | `v8.3.2` → `v9.0.0` | --- ### Release Notes <details> <summary>astral-sh/setup-uv (astral-sh/setup-uv)</summary> ### [`v9.0.0`](https://github.com/astral-sh/setup-uv/releases/tag/v9.0.0): 🌈 Change `prune-cache` default to `false` [Compare Source](astral-sh/setup-uv@v8.3.2...v9.0.0) #### Changes This release disables the default cache cache pruning to ease the load on the PyPi infrastructure. Since users might experience more GitHub Actions cache usage which might result in higher costs this is marked as a breaking change. To read more on why we did this (now) you can read the detailed analysis and reasoning in [#​967](astral-sh/setup-uv#967) Besides this big breaking change we also have a small bugfix while building caches for linux distributions that behave a big different than the "big ones" and a speed up in version resolution by only reading the version manifest until a matching version is found saving runtime and network bandwith. #### 🚨 Breaking changes - Change `prune-cache` default to `false` [@​charliermarsh](https://github.com/charliermarsh) ([#​967](astral-sh/setup-uv#967)) #### 🐛 Bug fixes - fix: fall back to distribution ID when os-release has no version field [@​cxzhong](https://github.com/cxzhong) ([#​961](astral-sh/setup-uv#961)) #### 🚀 Enhancements - Speed up version client by partial response reads [@​eifinger](https://github.com/eifinger) ([#​807](astral-sh/setup-uv#807)) #### 🧰 Maintenance - chore: update known checksums for 0.11.30 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​968](astral-sh/setup-uv#968)) - chore: update known checksums for 0.11.29 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​960](astral-sh/setup-uv#960)) #### 📚 Documentation - docs: update version references to v8.3.2 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​949](astral-sh/setup-uv#949)) #### ⬆️ Dependency updates - chore(deps): roll up Dependabot updates [@​eifinger](https://github.com/eifinger) ([#​970](astral-sh/setup-uv#970)) - chore(deps): roll up Dependabot updates [@​eifinger](https://github.com/eifinger) ([#​962](astral-sh/setup-uv#962)) </details> --- ### Configuration 📅 **Schedule**: (in timezone Europe/Warsaw) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNzIuMiIsInVwZGF0ZWRJblZlciI6IjQzLjI3Mi4yIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=--> Reviewed-on: https://git.ajgon.casa/deedee/schemas/pulls/14
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) | action | major | `v8.3.2` → `v9.0.0` | --- ### Release Notes <details> <summary>astral-sh/setup-uv (astral-sh/setup-uv)</summary> ### [`v9.0.0`](https://github.com/astral-sh/setup-uv/releases/tag/v9.0.0): 🌈 Change `prune-cache` default to `false` [Compare Source](astral-sh/setup-uv@v8.3.2...v9.0.0) ##### Changes This release disables the default cache cache pruning to ease the load on the PyPi infrastructure. Since users might experience more GitHub Actions cache usage which might result in higher costs this is marked as a breaking change. To read more on why we did this (now) you can read the detailed analysis and reasoning in [#​967](astral-sh/setup-uv#967) Besides this big breaking change we also have a small bugfix while building caches for linux distributions that behave a big different than the "big ones" and a speed up in version resolution by only reading the version manifest until a matching version is found saving runtime and network bandwith. ##### 🚨 Breaking changes - Change `prune-cache` default to `false` [@​charliermarsh](https://github.com/charliermarsh) ([#​967](astral-sh/setup-uv#967)) ##### 🐛 Bug fixes - fix: fall back to distribution ID when os-release has no version field [@​cxzhong](https://github.com/cxzhong) ([#​961](astral-sh/setup-uv#961)) ##### 🚀 Enhancements - Speed up version client by partial response reads [@​eifinger](https://github.com/eifinger) ([#​807](astral-sh/setup-uv#807)) ##### 🧰 Maintenance - chore: update known checksums for 0.11.30 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​968](astral-sh/setup-uv#968)) - chore: update known checksums for 0.11.29 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​960](astral-sh/setup-uv#960)) ##### 📚 Documentation - docs: update version references to v8.3.2 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​949](astral-sh/setup-uv#949)) ##### ⬆️ Dependency updates - chore(deps): roll up Dependabot updates [@​eifinger](https://github.com/eifinger) ([#​970](astral-sh/setup-uv#970)) - chore(deps): roll up Dependabot updates [@​eifinger](https://github.com/eifinger) ([#​962](astral-sh/setup-uv#962)) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNzMuMCIsInVwZGF0ZWRJblZlciI6IjQzLjI3My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJ0eXBlL2RlcGVuZGVuY2llcyJdfQ==-->Reviewed-on: https://git.tainton.uk/repos/pypilot/pulls/468 Reviewed-by: Luke Tainton <luke@tainton.uk> Co-authored-by: renovate[bot] <renovate-bot@git.tainton.uk>
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) | action | major | `v8.3.2` → `v9.0.0` | --- ### Release Notes <details> <summary>astral-sh/setup-uv (astral-sh/setup-uv)</summary> ### [`v9.0.0`](https://github.com/astral-sh/setup-uv/releases/tag/v9.0.0): 🌈 Change `prune-cache` default to `false` [Compare Source](astral-sh/setup-uv@v8.3.2...v9.0.0) ##### Changes This release disables the default cache cache pruning to ease the load on the PyPi infrastructure. Since users might experience more GitHub Actions cache usage which might result in higher costs this is marked as a breaking change. To read more on why we did this (now) you can read the detailed analysis and reasoning in [#​967](astral-sh/setup-uv#967) Besides this big breaking change we also have a small bugfix while building caches for linux distributions that behave a big different than the "big ones" and a speed up in version resolution by only reading the version manifest until a matching version is found saving runtime and network bandwith. ##### 🚨 Breaking changes - Change `prune-cache` default to `false` [@​charliermarsh](https://github.com/charliermarsh) ([#​967](astral-sh/setup-uv#967)) ##### 🐛 Bug fixes - fix: fall back to distribution ID when os-release has no version field [@​cxzhong](https://github.com/cxzhong) ([#​961](astral-sh/setup-uv#961)) ##### 🚀 Enhancements - Speed up version client by partial response reads [@​eifinger](https://github.com/eifinger) ([#​807](astral-sh/setup-uv#807)) ##### 🧰 Maintenance - chore: update known checksums for 0.11.30 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​968](astral-sh/setup-uv#968)) - chore: update known checksums for 0.11.29 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​960](astral-sh/setup-uv#960)) ##### 📚 Documentation - docs: update version references to v8.3.2 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​949](astral-sh/setup-uv#949)) ##### ⬆️ Dependency updates - chore(deps): roll up Dependabot updates [@​eifinger](https://github.com/eifinger) ([#​970](astral-sh/setup-uv#970)) - chore(deps): roll up Dependabot updates [@​eifinger](https://github.com/eifinger) ([#​962](astral-sh/setup-uv#962)) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNzMuMCIsInVwZGF0ZWRJblZlciI6IjQzLjI3My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJ0eXBlL2RlcGVuZGVuY2llcyJdfQ==-->Reviewed-on: https://git.tainton.uk/repos/labmcp/pulls/17 Reviewed-by: Luke Tainton <luke@tainton.uk> Co-authored-by: renovate[bot] <renovate-bot@git.tainton.uk>
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) | action | major | `v7` → `v9.0.0` | --- >⚠️ **Warning** > > Some dependencies could not be looked up. Check the warning logs for more information. --- ### Release Notes <details> <summary>astral-sh/setup-uv (astral-sh/setup-uv)</summary> ### [`v9.0.0`](https://github.com/astral-sh/setup-uv/releases/tag/v9.0.0): 🌈 Change `prune-cache` default to `false` [Compare Source](astral-sh/setup-uv@v8.3.2...v9.0.0) ##### Changes This release disables the default cache cache pruning to ease the load on the PyPi infrastructure. Since users might experience more GitHub Actions cache usage which might result in higher costs this is marked as a breaking change. To read more on why we did this (now) you can read the detailed analysis and reasoning in [#​967](astral-sh/setup-uv#967) Besides this big breaking change we also have a small bugfix while building caches for linux distributions that behave a big different than the "big ones" and a speed up in version resolution by only reading the version manifest until a matching version is found saving runtime and network bandwith. ##### 🚨 Breaking changes - Change `prune-cache` default to `false` [@​charliermarsh](https://github.com/charliermarsh) ([#​967](astral-sh/setup-uv#967)) ##### 🐛 Bug fixes - fix: fall back to distribution ID when os-release has no version field [@​cxzhong](https://github.com/cxzhong) ([#​961](astral-sh/setup-uv#961)) ##### 🚀 Enhancements - Speed up version client by partial response reads [@​eifinger](https://github.com/eifinger) ([#​807](astral-sh/setup-uv#807)) ##### 🧰 Maintenance - chore: update known checksums for 0.11.30 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​968](astral-sh/setup-uv#968)) - chore: update known checksums for 0.11.29 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​960](astral-sh/setup-uv#960)) ##### 📚 Documentation - docs: update version references to v8.3.2 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​949](astral-sh/setup-uv#949)) ##### ⬆️ Dependency updates - chore(deps): roll up Dependabot updates [@​eifinger](https://github.com/eifinger) ([#​970](astral-sh/setup-uv#970)) - chore(deps): roll up Dependabot updates [@​eifinger](https://github.com/eifinger) ([#​962](astral-sh/setup-uv#962)) ### [`v8.3.2`](https://github.com/astral-sh/setup-uv/releases/tag/v8.3.2): 🌈 update known checksums for 0.11.28 [Compare Source](astral-sh/setup-uv@v8.3.1...v8.3.2) ##### Changes Just a maintenance release ##### 🧰 Maintenance - chore: update known checksums for 0.11.28 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​947](astral-sh/setup-uv#947)) ##### 📚 Documentation - docs: update version references to v8.3.1 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​946](astral-sh/setup-uv#946)) ##### ⬆️ Dependency updates - chore: roll up Dependabot updates [@​eifinger](https://github.com/eifinger) ([#​948](astral-sh/setup-uv#948)) ### [`v8.3.1`](https://github.com/astral-sh/setup-uv/releases/tag/v8.3.1): 🌈 update known checksums for 0.11.27 [Compare Source](astral-sh/setup-uv@v8.3.0...v8.3.1) ##### Changes Just a maintenance release ##### 🧰 Maintenance - Change update-docs PR labels from 'update-docs' to 'documentation' [@​eifinger](https://github.com/eifinger) ([#​945](astral-sh/setup-uv#945)) - chore: update known checksums for 0.11.27 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​944](astral-sh/setup-uv#944)) ##### 📚 Documentation - docs: update version references to v8.3.0 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​939](astral-sh/setup-uv#939)) ### [`v8.3.0`](https://github.com/astral-sh/setup-uv/releases/tag/v8.3.0): 🌈 Support uv.lock as a version-file source [Compare Source](astral-sh/setup-uv@v8.2.0...v8.3.0) ##### Changes Thanks to [@​somaz94](https://github.com/somaz94) you can now use the pinned version of uv itself in `uv.lock`. It gets picked up automatically. If you have pinned another version of uv in your `uv.lock` you can use the inputs `version` or `version-source` to override this. ##### 🐛 Bug fixes - Strip environment markers from detected uv dependency pins [@​eifinger](https://github.com/eifinger) ([#​938](astral-sh/setup-uv#938)) - Fix cache keys for Python version ranges [@​eifinger](https://github.com/eifinger) ([#​937](astral-sh/setup-uv#937)) - fix: use BUILD\_ID as backup for determining os version [@​hgaiser](https://github.com/hgaiser) ([#​912](astral-sh/setup-uv#912)) ##### 🚀 Enhancements - feat: support uv.lock as a version-file source [@​somaz94](https://github.com/somaz94) ([#​918](astral-sh/setup-uv#918)) ##### 🧰 Maintenance - ci: call docs update workflow from release [@​eifinger](https://github.com/eifinger) ([#​933](astral-sh/setup-uv#933)) - chore: update known checksums for 0.11.26 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​930](astral-sh/setup-uv#930)) - chore: update known checksums for 0.11.25 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​929](astral-sh/setup-uv#929)) - chore: update known checksums for 0.11.24 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​925](astral-sh/setup-uv#925)) - chore: update known checksums for 0.11.23 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​922](astral-sh/setup-uv#922)) - chore: update known checksums for 0.11.22 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​921](astral-sh/setup-uv#921)) - chore: update known checksums for 0.11.21 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​917](astral-sh/setup-uv#917)) - chore: update known checksums for 0.11.20 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​915](astral-sh/setup-uv#915)) - chore: update known checksums for 0.11.19 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​909](astral-sh/setup-uv#909)) ##### 📚 Documentation - docs: update version references to v8.2.0 [@​KRRT7](https://github.com/KRRT7) ([#​932](astral-sh/setup-uv#932)) - Add a threat model for setup-uv [@​zsol](https://github.com/zsol) ([#​923](astral-sh/setup-uv#923)) ##### ⬆️ Dependency updates - chore(deps): roll up Dependabot updates [@​eifinger](https://github.com/eifinger) ([#​936](astral-sh/setup-uv#936)) - chore(deps): bump release-drafter/release-drafter from 7.3.1 to 7.4.0 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​924](astral-sh/setup-uv#924)) - chore(deps): bump actions/checkout from 6.0.2 to 7.0.0 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​926](astral-sh/setup-uv#926)) ### [`v8.2.0`](https://github.com/astral-sh/setup-uv/releases/tag/v8.2.0): 🌈 New inputs `quiet` and `download-from-astral-mirror` [Compare Source](astral-sh/setup-uv@v8.1.0...v8.2.0) ##### Changes This release brings two new inputs and a few bug fixes. ##### New inputs Lets talk about the new inputs first. ##### quiet Pretty simple. It turns of all `info` loggings. Useful if you use this in a composite action and are not interested in all the details. In the upcoming releases we will add log groups to fully implement support for "less noise" > \[!NOTE]\ > Warnings and errors are always logged. ##### download-from-astral-mirror In some cases you may want to directly use the fallback of checking for available versions and downloading releases from GitHub instead of using the astral.sh mirror. Setting `download-from-astral-mirror: false` allows you to do that. ##### Bugfixes When using the astral.sh mirror to query available versions and download releases (done by default) we now stop sending the GitHub token in the header. The mirror never looked at it but we shouldn't be handing out that data even if it is just a short lived token. All other bugfixes try to limit the impact of failed GitHub queries due to retries and other faults. We couldn't pinpoint all rootcauses yet but added more logging for error cases to track them down. ##### 🐛 Bug fixes - fix: report unexpected cache save failures [@​eifinger](https://github.com/eifinger) ([#​896](astral-sh/setup-uv#896)) - fix: report unexpected setup failures [@​eifinger](https://github.com/eifinger) ([#​895](astral-sh/setup-uv#895)) - fix: add timeout to fetch to prevent silent hangs [@​eifinger-bot](https://github.com/eifinger-bot) ([#​883](astral-sh/setup-uv#883)) - Limit GitHub tokens to github.com download URLs [@​zsol](https://github.com/zsol) ([#​878](astral-sh/setup-uv#878)) - increase libuv-workaround timeout to 100ms [@​eifinger](https://github.com/eifinger) ([#​880](astral-sh/setup-uv#880)) ##### 🚀 Enhancements - Add quiet input to suppress info-level log output [@​eifinger](https://github.com/eifinger) ([#​898](astral-sh/setup-uv#898)) - feat: add `download-from-astral-mirror` input [@​eifinger](https://github.com/eifinger) ([#​897](astral-sh/setup-uv#897)) ##### 🧰 Maintenance - docs: update dependabot rollup biome guidance [@​eifinger](https://github.com/eifinger) ([#​902](astral-sh/setup-uv#902)) - chore: update known checksums for 0.11.18 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​899](astral-sh/setup-uv#899)) - chore: update known checksums for 0.11.17 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​892](astral-sh/setup-uv#892)) - chore: update known checksums for 0.11.16 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​889](astral-sh/setup-uv#889)) - chore: update known checksums for 0.11.15 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​885](astral-sh/setup-uv#885)) - chore: update known checksums for 0.11.14 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​879](astral-sh/setup-uv#879)) - chore: update known checksums for 0.11.13 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​877](astral-sh/setup-uv#877)) - chore: update known checksums for 0.11.12 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​876](astral-sh/setup-uv#876)) - chore: update known checksums for 0.11.11 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​873](astral-sh/setup-uv#873)) - chore: update known checksums for 0.11.9/0.11.10 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​871](astral-sh/setup-uv#871)) - chore: update known checksums for 0.11.8 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​867](astral-sh/setup-uv#867)) - Bump setup-uv references to v8.1.0 SHA in docs [@​eifinger](https://github.com/eifinger) ([#​862](astral-sh/setup-uv#862)) - Add update-docs.yml workflow [@​eifinger](https://github.com/eifinger) ([#​861](astral-sh/setup-uv#861)) ##### ⬆️ Dependency updates - chore(deps): roll up dependabot updates [@​eifinger](https://github.com/eifinger) ([#​903](astral-sh/setup-uv#903)) - chore(deps): roll up dependabot updates [@​eifinger](https://github.com/eifinger) ([#​901](astral-sh/setup-uv#901)) - chore(deps): bump release-drafter/release-drafter from 7.3.0 to 7.3.1 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​900](astral-sh/setup-uv#900)) - chore(deps): bump eifinger/actionlint-action from 1.10.1 to 1.10.2 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​842](astral-sh/setup-uv#842)) - chore(deps): bump github/codeql-action from 4.35.4 to 4.36.0 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​893](astral-sh/setup-uv#893)) - chore(deps): bump zizmorcore/zizmor-action from 0.5.5 to 0.5.6 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​891](astral-sh/setup-uv#891)) - chore(deps): bump release-drafter/release-drafter from 7.2.0 to 7.3.0 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​884](astral-sh/setup-uv#884)) - chore(deps): bump zizmorcore/zizmor-action from 0.5.3 to 0.5.5 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​888](astral-sh/setup-uv#888)) - chore(deps): bump github/codeql-action from 4.35.3 to 4.35.4 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​881](astral-sh/setup-uv#881)) - chore(deps): bump github/codeql-action from 4.32.2 to 4.35.3 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​875](astral-sh/setup-uv#875)) - chore(deps): bump actions/setup-node from 6.3.0 to 6.4.0 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​866](astral-sh/setup-uv#866)) - chore(deps): bump zizmorcore/zizmor-action from 0.5.2 to 0.5.3 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​864](astral-sh/setup-uv#864)) - chore(deps): bump peter-evans/create-pull-request from 8.1.0 to 8.1.1 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​863](astral-sh/setup-uv#863)) ### [`v8.1.0`](https://github.com/astral-sh/setup-uv/releases/tag/v8.1.0): 🌈 New input `no-project` [Compare Source](astral-sh/setup-uv@v8.0.0...v8.1.0) ##### Changes This add the a new boolean input `no-project`. It only makes sense to use in combination with `activate-environment: true` and will append `--no project` to the `uv venv` call. This is for example useful [if you have a pyproject.toml file with parts unparseable by uv](astral-sh/setup-uv#854) ##### 🚀 Enhancements - Add input no-project in combination with activate-environment [@​eifinger](https://github.com/eifinger) ([#​856](astral-sh/setup-uv#856)) ##### 🧰 Maintenance - fix: grant contents:write to validate-release job [@​eifinger](https://github.com/eifinger) ([#​860](astral-sh/setup-uv#860)) - Add a release-gate step to the release workflow [@​zanieb](https://github.com/zanieb) ([#​859](astral-sh/setup-uv#859)) - Draft commitish releases [@​eifinger](https://github.com/eifinger) ([#​858](astral-sh/setup-uv#858)) - Add action-types.yml to instructions [@​eifinger](https://github.com/eifinger) ([#​857](astral-sh/setup-uv#857)) - chore: update known checksums for 0.11.7 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​853](astral-sh/setup-uv#853)) - Refactor version resolving [@​eifinger](https://github.com/eifinger) ([#​852](astral-sh/setup-uv#852)) - chore: update known checksums for 0.11.6 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​850](astral-sh/setup-uv#850)) - chore: update known checksums for 0.11.5 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​845](astral-sh/setup-uv#845)) - chore: update known checksums for 0.11.4 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​843](astral-sh/setup-uv#843)) - Add a release workflow [@​zanieb](https://github.com/zanieb) ([#​839](astral-sh/setup-uv#839)) - chore: update known checksums for 0.11.3 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​836](astral-sh/setup-uv#836)) ##### 📚 Documentation - Update ignore-nothing-to-cache documentation [@​eifinger](https://github.com/eifinger) ([#​833](astral-sh/setup-uv#833)) - Pin setup-uv docs to v8 [@​eifinger](https://github.com/eifinger) ([#​829](astral-sh/setup-uv#829)) ##### ⬆️ Dependency updates - chore(deps): bump release-drafter/release-drafter from 7.1.1 to 7.2.0 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​855](astral-sh/setup-uv#855)) ### [`v8.0.0`](https://github.com/astral-sh/setup-uv/releases/tag/v8.0.0): 🌈 Immutable releases and secure tags [Compare Source](astral-sh/setup-uv@v7.6.0...v8.0.0) ##### This is the first immutable release of `setup-uv` 🥳 All future releases are also immutable, if you want to know more about what this means checkout [the docs](https://docs.github.com/en/code-security/concepts/supply-chain-security/immutable-releases). This release also has two breaking changes ##### New format for `manifest-file` The previously deprecated way of defining a custom version manifest to control which `uv` versions are available and where to download them from got removed. The functionality is still there but you have to use the [new format](https://github.com/astral-sh/setup-uv/blob/main/docs/customization.md#format). ##### No more major and minor tags To increase **security** even more we will **stop publishing minor tags**. You won't be able to use `@v8` or `@v8.0` any longer. We do this because pinning to major releases opens up users to supply chain attacks like what happened to [tj-actions](https://unit42.paloaltonetworks.com/github-actions-supply-chain-attack/). > \[!TIP] > Use the immutable tag as a version `astral-sh/setup-uv@v8.0.0` > Or even better the githash `astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57` ##### 🚨 Breaking changes - Remove update-major-minor-tags workflow [@​eifinger](https://github.com/eifinger) ([#​826](astral-sh/setup-uv#826)) - Remove deprecrated custom manifest [@​eifinger](https://github.com/eifinger) ([#​813](astral-sh/setup-uv#813)) ##### 🧰 Maintenance - Shortcircuit latest version from manifest [@​eifinger](https://github.com/eifinger) ([#​828](astral-sh/setup-uv#828)) - Simplify inputs.ts [@​eifinger](https://github.com/eifinger) ([#​827](astral-sh/setup-uv#827)) - Bump release-drafter to v7.1.1 [@​eifinger](https://github.com/eifinger) ([#​825](astral-sh/setup-uv#825)) - Refactor inputs [@​eifinger](https://github.com/eifinger) ([#​823](astral-sh/setup-uv#823)) - Replace inline compile args with tsconfig [@​eifinger](https://github.com/eifinger) ([#​824](astral-sh/setup-uv#824)) - chore: update known checksums for 0.11.2 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​821](astral-sh/setup-uv#821)) - chore: update known checksums for 0.11.1 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​817](astral-sh/setup-uv#817)) - chore: update known checksums for 0.11.0 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​815](astral-sh/setup-uv#815)) - Fix latest-version workflow check [@​eifinger](https://github.com/eifinger) ([#​812](astral-sh/setup-uv#812)) - chore: update known checksums for 0.10.11/0.10.12 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​811](astral-sh/setup-uv#811)) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNTkuMiIsInVwZGF0ZWRJblZlciI6IjQzLjI1OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Reviewed-on: https://git.baer.one/phbaer/ha-birthday-calendar/pulls/12
Update astral-sh/setup-uv action to v10 This MR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) | action | major | `v7` → `v10.0.1` | --- ### Release Notes <details> <summary>astral-sh/setup-uv (astral-sh/setup-uv)</summary> ### [`v10.0.1`](https://github.com/astral-sh/setup-uv/releases/tag/v10.0.1): 🌈 Tolerate transient manifest timeouts [Compare Source](astral-sh/setup-uv@v10.0.0...v10.0.1) ##### Changes Thank you [@​arguile-](https://github.com/arguile-) for making this action more resilient. ##### 🐛 Bug fixes - Tolerate transient manifest timeouts [@​arguile-](https://github.com/arguile-) ([#​1016](astral-sh/setup-uv#1016)) ##### 🧰 Maintenance - chore: update known checksums for 0.12.4 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​1017](astral-sh/setup-uv#1017)) ##### 📚 Documentation - docs: update version references to v10.0.0 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​1014](astral-sh/setup-uv#1014)) ### [`v10.0.0`](https://github.com/astral-sh/setup-uv/releases/tag/v10.0.0): 🌈 Disable automatic caching for sensitive events and new QOL features [Compare Source](astral-sh/setup-uv@v9.0.0...v10.0.0) ##### Changes Another breaking release, directly after v9.0.0 but we think the added security justifies that. ##### Extra security by default If you use the default `enable-cache: auto` this will now **DISABLE THE CACHE** to protect against cache poisoning for the following events: - `pull_request_target` - `workflow_run` - `release` You can read the full reasoning in [#​984](astral-sh/setup-uv#984) ##### `version: latest-known` ```yaml - name: Install the latest version of uv known to setup-uv uses: astral-sh/setup-uv@v10.0.0 with: version: "latest-known" ``` This will now install the latest version with a checksum that is known by this action. The [known `uv` checksums](https://github.com/astral-sh/setup-uv/blob/4f6036f71cec78afb113b323f220c9185d983c12/src/download/checksum/known-checksums.ts) are automatically updated but will take a release of this action to take effect. You won't be always using the latest & greatest but you will have an extra level of security. ##### Read python version from `.tool-versions` ```yaml - name: Install uv based on the version defined in .tool-versions and also set python uses: astral-sh/setup-uv@v10.0.0 with: version-file: "pyproject.toml" ``` Will now also set the python version if it is defined in `.tool-versions`. You can read the details [in the docs](https://github.com/astral-sh/setup-uv/blob/main/docs/advanced-version-configuration.md#install-a-version-defined-in-a-requirements-or-config-file) ##### 🚨 Breaking changes - Disable automatic caching for sensitive events [@​eifinger](https://github.com/eifinger) ([#​992](astral-sh/setup-uv#992)) ##### 🐛 Bug fixes - Reject paths in .tool-versions [@​eifinger](https://github.com/eifinger) ([#​1007](astral-sh/setup-uv#1007)) ##### 🚀 Enhancements - Read Python version from .tool-versions [@​eifinger](https://github.com/eifinger) ([#​996](astral-sh/setup-uv#996)) - Add latest-known version selector [@​eifinger](https://github.com/eifinger) ([#​993](astral-sh/setup-uv#993)) ##### 🧰 Maintenance - Require pull requests for Dependabot rollups [@​eifinger](https://github.com/eifinger) ([#​1005](astral-sh/setup-uv#1005)) - ci: pin Alpine container image [@​eifinger](https://github.com/eifinger) ([#​995](astral-sh/setup-uv#995)) - chore: update known checksums for 0.12.3 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​991](astral-sh/setup-uv#991)) - chore: update known checksums for 0.12.2 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​985](astral-sh/setup-uv#985)) - chore: update known checksums for 0.12.1 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​982](astral-sh/setup-uv#982)) - chore: update known checksums for 0.12.0 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​981](astral-sh/setup-uv#981)) - chore: update known checksums for 0.11.31/0.11.32 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​972](astral-sh/setup-uv#972)) ##### 📚 Documentation - docs: update version references to v9.0.0 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​971](astral-sh/setup-uv#971)) ##### ⬆️ Dependency updates - chore(deps): roll up Dependabot updates [@​eifinger](https://github.com/eifinger) ([#​1013](astral-sh/setup-uv#1013)) - chore(deps): roll up Dependabot updates [@​eifinger](https://github.com/eifinger) ([#​1004](astral-sh/setup-uv#1004)) - chore(deps): roll up Dependabot updates [@​eifinger](https://github.com/eifinger) ([#​994](astral-sh/setup-uv#994)) - chore(deps): bump zizmorcore/zizmor-action from 0.5.7 to 0.6.0 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​976](astral-sh/setup-uv#976)) - chore(deps): bump actions/checkout from 7.0.0 to 7.0.1 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​980](astral-sh/setup-uv#980)) ### [`v9.0.0`](https://github.com/astral-sh/setup-uv/releases/tag/v9.0.0): 🌈 Change `prune-cache` default to `false` [Compare Source](astral-sh/setup-uv@v8.3.2...v9.0.0) ##### Changes This release disables the default cache cache pruning to ease the load on the PyPi infrastructure. Since users might experience more GitHub Actions cache usage which might result in higher costs this is marked as a breaking change. To read more on why we did this (now) you can read the detailed analysis and reasoning in [#​967](astral-sh/setup-uv#967) Besides this big breaking change we also have a small bugfix while building caches for linux distributions that behave a big different than the "big ones" and a speed up in version resolution by only reading the version manifest until a matching version is found saving runtime and network bandwith. ##### 🚨 Breaking changes - Change `prune-cache` default to `false` [@​charliermarsh](https://github.com/charliermarsh) ([#​967](astral-sh/setup-uv#967)) ##### 🐛 Bug fixes - fix: fall back to distribution ID when os-release has no version field [@​cxzhong](https://github.com/cxzhong) ([#​961](astral-sh/setup-uv#961)) ##### 🚀 Enhancements - Speed up version client by partial response reads [@​eifinger](https://github.com/eifinger) ([#​807](astral-sh/setup-uv#807)) ##### 🧰 Maintenance - chore: update known checksums for 0.11.30 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​968](astral-sh/setup-uv#968)) - chore: update known checksums for 0.11.29 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​960](astral-sh/setup-uv#960)) ##### 📚 Documentation - docs: update version references to v8.3.2 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​949](astral-sh/setup-uv#949)) ##### ⬆️ Dependency updates - chore(deps): roll up Dependabot updates [@​eifinger](https://github.com/eifinger) ([#​970](astral-sh/setup-uv#970)) - chore(deps): roll up Dependabot updates [@​eifinger](https://github.com/eifinger) ([#​962](astral-sh/setup-uv#962)) ### [`v8.3.2`](https://github.com/astral-sh/setup-uv/releases/tag/v8.3.2): 🌈 update known checksums for 0.11.28 [Compare Source](astral-sh/setup-uv@v8.3.1...v8.3.2) ##### Changes Just a maintenance release ##### 🧰 Maintenance - chore: update known checksums for 0.11.28 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​947](astral-sh/setup-uv#947)) ##### 📚 Documentation - docs: update version references to v8.3.1 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​946](astral-sh/setup-uv#946)) ##### ⬆️ Dependency updates - chore: roll up Dependabot updates [@​eifinger](https://github.com/eifinger) ([#​948](astral-sh/setup-uv#948)) ### [`v8.3.1`](https://github.com/astral-sh/setup-uv/releases/tag/v8.3.1): 🌈 update known checksums for 0.11.27 [Compare Source](astral-sh/setup-uv@v8.3.0...v8.3.1) ##### Changes Just a maintenance release ##### 🧰 Maintenance - Change update-docs MR labels from 'update-docs' to 'documentation' [@​eifinger](https://github.com/eifinger) ([#​945](astral-sh/setup-uv#945)) - chore: update known checksums for 0.11.27 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​944](astral-sh/setup-uv#944)) ##### 📚 Documentation - docs: update version references to v8.3.0 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​939](astral-sh/setup-uv#939)) ### [`v8.3.0`](https://github.com/astral-sh/setup-uv/releases/tag/v8.3.0): 🌈 Support uv.lock as a version-file source [Compare Source](astral-sh/setup-uv@v8.2.0...v8.3.0) ##### Changes Thanks to [@​somaz94](https://github.com/somaz94) you can now use the pinned version of uv itself in `uv.lock`. It gets picked up automatically. If you have pinned another version of uv in your `uv.lock` you can use the inputs `version` or `version-source` to override this. ##### 🐛 Bug fixes - Strip environment markers from detected uv dependency pins [@​eifinger](https://github.com/eifinger) ([#​938](astral-sh/setup-uv#938)) - Fix cache keys for Python version ranges [@​eifinger](https://github.com/eifinger) ([#​937](astral-sh/setup-uv#937)) - fix: use BUILD\_ID as backup for determining os version [@​hgaiser](https://github.com/hgaiser) ([#​912](astral-sh/setup-uv#912)) ##### 🚀 Enhancements - feat: support uv.lock as a version-file source [@​somaz94](https://github.com/somaz94) ([#​918](astral-sh/setup-uv#918)) ##### 🧰 Maintenance - ci: call docs update workflow from release [@​eifinger](https://github.com/eifinger) ([#​933](astral-sh/setup-uv#933)) - chore: update known checksums for 0.11.26 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​930](astral-sh/setup-uv#930)) - chore: update known checksums for 0.11.25 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​929](astral-sh/setup-uv#929)) - chore: update known checksums for 0.11.24 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​925](astral-sh/setup-uv#925)) - chore: update known checksums for 0.11.23 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​922](astral-sh/setup-uv#922)) - chore: update known checksums for 0.11.22 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​921](astral-sh/setup-uv#921)) - chore: update known checksums for 0.11.21 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​917](astral-sh/setup-uv#917)) - chore: update known checksums for 0.11.20 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​915](astral-sh/setup-uv#915)) - chore: update known checksums for 0.11.19 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​909](astral-sh/setup-uv#909)) ##### 📚 Documentation - docs: update version references to v8.2.0 [@​KRRT7](https://github.com/KRRT7) ([#​932](astral-sh/setup-uv#932)) - Add a threat model for setup-uv [@​zsol](https://github.com/zsol) ([#​923](astral-sh/setup-uv#923)) ##### ⬆️ Dependency updates - chore(deps): roll up Dependabot updates [@​eifinger](https://github.com/eifinger) ([#​936](astral-sh/setup-uv#936)) - chore(deps): bump release-drafter/release-drafter from 7.3.1 to 7.4.0 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​924](astral-sh/setup-uv#924)) - chore(deps): bump actions/checkout from 6.0.2 to 7.0.0 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​926](astral-sh/setup-uv#926)) ### [`v8.2.0`](https://github.com/astral-sh/setup-uv/releases/tag/v8.2.0): 🌈 New inputs `quiet` and `download-from-astral-mirror` [Compare Source](astral-sh/setup-uv@v8.1.0...v8.2.0) ##### Changes This release brings two new inputs and a few bug fixes. ##### New inputs Lets talk about the new inputs first. ##### quiet Pretty simple. It turns of all `info` loggings. Useful if you use this in a composite action and are not interested in all the details. In the upcoming releases we will add log groups to fully implement support for "less noise" > \[!NOTE]\ > Warnings and errors are always logged. ##### download-from-astral-mirror In some cases you may want to directly use the fallback of checking for available versions and downloading releases from GitHub instead of using the astral.sh mirror. Setting `download-from-astral-mirror: false` allows you to do that. ##### Bugfixes When using the astral.sh mirror to query available versions and download releases (done by default) we now stop sending the GitHub token in the header. The mirror never looked at it but we shouldn't be handing out that data even if it is just a short lived token. All other bugfixes try to limit the impact of failed GitHub queries due to retries and other faults. We couldn't pinpoint all rootcauses yet but added more logging for error cases to track them down. ##### 🐛 Bug fixes - fix: report unexpected cache save failures [@​eifinger](https://github.com/eifinger) ([#​896](astral-sh/setup-uv#896)) - fix: report unexpected setup failures [@​eifinger](https://github.com/eifinger) ([#​895](astral-sh/setup-uv#895)) - fix: add timeout to fetch to prevent silent hangs [@​eifinger-bot](https://github.com/eifinger-bot) ([#​883](astral-sh/setup-uv#883)) - Limit GitHub tokens to github.com download URLs [@​zsol](https://github.com/zsol) ([#​878](astral-sh/setup-uv#878)) - increase libuv-workaround timeout to 100ms [@​eifinger](https://github.com/eifinger) ([#​880](astral-sh/setup-uv#880)) ##### 🚀 Enhancements - Add quiet input to suppress info-level log output [@​eifinger](https://github.com/eifinger) ([#​898](astral-sh/setup-uv#898)) - feat: add `download-from-astral-mirror` input [@​eifinger](https://github.com/eifinger) ([#​897](astral-sh/setup-uv#897)) ##### 🧰 Maintenance - docs: update dependabot rollup biome guidance [@​eifinger](https://github.com/eifinger) ([#​902](astral-sh/setup-uv#902)) - chore: update known checksums for 0.11.18 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​899](astral-sh/setup-uv#899)) - chore: update known checksums for 0.11.17 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​892](astral-sh/setup-uv#892)) - chore: update known checksums for 0.11.16 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​889](astral-sh/setup-uv#889)) - chore: update known checksums for 0.11.15 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​885](astral-sh/setup-uv#885)) - chore: update known checksums for 0.11.14 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​879](astral-sh/setup-uv#879)) - chore: update known checksums for 0.11.13 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​877](astral-sh/setup-uv#877)) - chore: update known checksums for 0.11.12 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​876](astral-sh/setup-uv#876)) - chore: update known checksums for 0.11.11 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​873](astral-sh/setup-uv#873)) - chore: update known checksums for 0.11.9/0.11.10 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​871](astral-sh/setup-uv#871)) - chore: update known checksums for 0.11.8 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​867](astral-sh/setup-uv#867)) - Bump setup-uv references to v8.1.0 SHA in docs [@​eifinger](https://github.com/eifinger) ([#​862](astral-sh/setup-uv#862)) - Add update-docs.yml workflow [@​eifinger](https://github.com/eifinger) ([#​861](astral-sh/setup-uv#861)) ##### ⬆️ Dependency updates - chore(deps): roll up dependabot updates [@​eifinger](https://github.com/eifinger) ([#​903](astral-sh/setup-uv#903)) - chore(deps): roll up dependabot updates [@​eifinger](https://github.com/eifinger) ([#​901](astral-sh/setup-uv#901)) - chore(deps): bump release-drafter/release-drafter from 7.3.0 to 7.3.1 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​900](astral-sh/setup-uv#900)) - chore(deps): bump eifinger/actionlint-action from 1.10.1 to 1.10.2 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​842](astral-sh/setup-uv#842)) - chore(deps): bump github/codeql-action from 4.35.4 to 4.36.0 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​893](astral-sh/setup-uv#893)) - chore(deps): bump zizmorcore/zizmor-action from 0.5.5 to 0.5.6 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​891](astral-sh/setup-uv#891)) - chore(deps): bump release-drafter/release-drafter from 7.2.0 to 7.3.0 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​884](astral-sh/setup-uv#884)) - chore(deps): bump zizmorcore/zizmor-action from 0.5.3 to 0.5.5 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​888](astral-sh/setup-uv#888)) - chore(deps): bump github/codeql-action from 4.35.3 to 4.35.4 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​881](astral-sh/setup-uv#881)) - chore(deps): bump github/codeql-action from 4.32.2 to 4.35.3 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​875](astral-sh/setup-uv#875)) - chore(deps): bump actions/setup-node from 6.3.0 to 6.4.0 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​866](astral-sh/setup-uv#866)) - chore(deps): bump zizmorcore/zizmor-action from 0.5.2 to 0.5.3 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​864](astral-sh/setup-uv#864)) - chore(deps): bump peter-evans/create-pull-request from 8.1.0 to 8.1.1 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​863](astral-sh/setup-uv#863)) ### [`v8.1.0`](https://github.com/astral-sh/setup-uv/releases/tag/v8.1.0): 🌈 New input `no-project` [Compare Source](astral-sh/setup-uv@v8.0.0...v8.1.0) ##### Changes This add the a new boolean input `no-project`. It only makes sense to use in combination with `activate-environment: true` and will append `--no project` to the `uv venv` call. This is for example useful [if you have a pyproject.toml file with parts unparseable by uv](astral-sh/setup-uv#854) ##### 🚀 Enhancements - Add input no-project in combination with activate-environment [@​eifinger](https://github.com/eifinger) ([#​856](astral-sh/setup-uv#856)) ##### 🧰 Maintenance - fix: grant contents:write to validate-release job [@​eifinger](https://github.com/eifinger) ([#​860](astral-sh/setup-uv#860)) - Add a release-gate step to the release workflow [@​zanieb](https://github.com/zanieb) ([#​859](astral-sh/setup-uv#859)) - Draft commitish releases [@​eifinger](https://github.com/eifinger) ([#​858](astral-sh/setup-uv#858)) - Add action-types.yml to instructions [@​eifinger](https://github.com/eifinger) ([#​857](astral-sh/setup-uv#857)) - chore: update known checksums for 0.11.7 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​853](astral-sh/setup-uv#853)) - Refactor version resolving [@​eifinger](https://github.com/eifinger) ([#​852](astral-sh/setup-uv#852)) - chore: update known checksums for 0.11.6 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​850](astral-sh/setup-uv#850)) - chore: update known checksums for 0.11.5 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​845](astral-sh/setup-uv#845)) - chore: update known checksums for 0.11.4 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​843](astral-sh/setup-uv#843)) - Add a release workflow [@​zanieb](https://github.com/zanieb) ([#​839](astral-sh/setup-uv#839)) - chore: update known checksums for 0.11.3 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​836](astral-sh/setup-uv#836)) ##### 📚 Documentation - Update ignore-nothing-to-cache documentation [@​eifinger](https://github.com/eifinger) ([#​833](astral-sh/setup-uv#833)) - Pin setup-uv docs to v8 [@​eifinger](https://github.com/eifinger) ([#​829](astral-sh/setup-uv#829)) ##### ⬆️ Dependency updates - chore(deps): bump release-drafter/release-drafter from 7.1.1 to 7.2.0 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​855](astral-sh/setup-uv#855)) ### [`v8.0.0`](https://github.com/astral-sh/setup-uv/releases/tag/v8.0.0): 🌈 Immutable releases and secure tags [Compare Source](astral-sh/setup-uv@v7.6.0...v8.0.0) ##### This is the first immutable release of `setup-uv` 🥳 All future releases are also immutable, if you want to know more about what this means checkout [the docs](https://docs.github.com/en/code-security/concepts/supply-chain-security/immutable-releases). This release also has two breaking changes ##### New format for `manifest-file` The previously deprecated way of defining a custom version manifest to control which `uv` versions are available and where to download them from got removed. The functionality is still there but you have to use the [new format](https://github.com/astral-sh/setup-uv/blob/main/docs/customization.md#format). ##### No more major and minor tags To increase **security** even more we will **stop publishing minor tags**. You won't be able to use `@v8` or `@v8.0` any longer. We do this because pinning to major releases opens up users to supply chain attacks like what happened to [tj-actions](https://unit42.paloaltonetworks.com/github-actions-supply-chain-attack/). > \[!TIP] > Use the immutable tag as a version `astral-sh/setup-uv@v8.0.0` > Or even better the githash `astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57` ##### 🚨 Breaking changes - Remove update-major-minor-tags workflow [@​eifinger](https://github.com/eifinger) ([#​826](astral-sh/setup-uv#826)) - Remove deprecrated custom manifest [@​eifinger](https://github.com/eifinger) ([#​813](astral-sh/setup-uv#813)) ##### 🧰 Maintenance - Shortcircuit latest version from manifest [@​eifinger](https://github.com/eifinger) ([#​828](astral-sh/setup-uv#828)) - Simplify inputs.ts [@​eifinger](https://github.com/eifinger) ([#​827](astral-sh/setup-uv#827)) - Bump release-drafter to v7.1.1 [@​eifinger](https://github.com/eifinger) ([#​825](astral-sh/setup-uv#825)) - Refactor inputs [@​eifinger](https://github.com/eifinger) ([#​823](astral-sh/setup-uv#823)) - Replace inline compile args with tsconfig [@​eifinger](https://github.com/eifinger) ([#​824](astral-sh/setup-uv#824)) - chore: update known checksums for 0.11.2 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​821](astral-sh/setup-uv#821)) - chore: update known checksums for 0.11.1 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​817](astral-sh/setup-uv#817)) - chore: update known checksums for 0.11.0 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​815](astral-sh/setup-uv#815)) - Fix latest-version workflow check [@​eifinger](https://github.com/eifinger) ([#​812](astral-sh/setup-uv#812)) - chore: update known checksums for 0.10.11/0.10.12 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​811](astral-sh/setup-uv#811)) </details> --- ### Configuration 📅 **Schedule**: (in timezone Asia/Taipei) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this MR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box --- This MR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4zMy4yIiwidXBkYXRlZEluVmVyIjoiNDQuMzMuMiIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6WyJtYWpvci11cGRhdGUiXX0=--> See merge request TW0hank0/positive_mahjong!140
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) | action | major | `v8.3.2` → `v10.0.1` | --- ### Release Notes <details> <summary>astral-sh/setup-uv (astral-sh/setup-uv)</summary> ### [`v10.0.1`](https://github.com/astral-sh/setup-uv/releases/tag/v10.0.1): 🌈 Tolerate transient manifest timeouts [Compare Source](astral-sh/setup-uv@v10.0.0...v10.0.1) ##### Changes Thank you [@​arguile-](https://github.com/arguile-) for making this action more resilient. ##### 🐛 Bug fixes - Tolerate transient manifest timeouts [@​arguile-](https://github.com/arguile-) ([#​1016](astral-sh/setup-uv#1016)) ##### 🧰 Maintenance - chore: update known checksums for 0.12.4 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​1017](astral-sh/setup-uv#1017)) ##### 📚 Documentation - docs: update version references to v10.0.0 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​1014](astral-sh/setup-uv#1014)) ### [`v10.0.0`](https://github.com/astral-sh/setup-uv/releases/tag/v10.0.0): 🌈 Disable automatic caching for sensitive events and new QOL features [Compare Source](astral-sh/setup-uv@v9.0.0...v10.0.0) ##### Changes Another breaking release, directly after v9.0.0 but we think the added security justifies that. ##### Extra security by default If you use the default `enable-cache: auto` this will now **DISABLE THE CACHE** to protect against cache poisoning for the following events: - `pull_request_target` - `workflow_run` - `release` You can read the full reasoning in [#​984](astral-sh/setup-uv#984) ##### `version: latest-known` ```yaml - name: Install the latest version of uv known to setup-uv uses: astral-sh/setup-uv@v10.0.0 with: version: "latest-known" ``` This will now install the latest version with a checksum that is known by this action. The [known `uv` checksums](https://github.com/astral-sh/setup-uv/blob/4f6036f71cec78afb113b323f220c9185d983c12/src/download/checksum/known-checksums.ts) are automatically updated but will take a release of this action to take effect. You won't be always using the latest & greatest but you will have an extra level of security. ##### Read python version from `.tool-versions` ```yaml - name: Install uv based on the version defined in .tool-versions and also set python uses: astral-sh/setup-uv@v10.0.0 with: version-file: "pyproject.toml" ``` Will now also set the python version if it is defined in `.tool-versions`. You can read the details [in the docs](https://github.com/astral-sh/setup-uv/blob/main/docs/advanced-version-configuration.md#install-a-version-defined-in-a-requirements-or-config-file) ##### 🚨 Breaking changes - Disable automatic caching for sensitive events [@​eifinger](https://github.com/eifinger) ([#​992](astral-sh/setup-uv#992)) ##### 🐛 Bug fixes - Reject paths in .tool-versions [@​eifinger](https://github.com/eifinger) ([#​1007](astral-sh/setup-uv#1007)) ##### 🚀 Enhancements - Read Python version from .tool-versions [@​eifinger](https://github.com/eifinger) ([#​996](astral-sh/setup-uv#996)) - Add latest-known version selector [@​eifinger](https://github.com/eifinger) ([#​993](astral-sh/setup-uv#993)) ##### 🧰 Maintenance - Require pull requests for Dependabot rollups [@​eifinger](https://github.com/eifinger) ([#​1005](astral-sh/setup-uv#1005)) - ci: pin Alpine container image [@​eifinger](https://github.com/eifinger) ([#​995](astral-sh/setup-uv#995)) - chore: update known checksums for 0.12.3 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​991](astral-sh/setup-uv#991)) - chore: update known checksums for 0.12.2 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​985](astral-sh/setup-uv#985)) - chore: update known checksums for 0.12.1 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​982](astral-sh/setup-uv#982)) - chore: update known checksums for 0.12.0 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​981](astral-sh/setup-uv#981)) - chore: update known checksums for 0.11.31/0.11.32 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​972](astral-sh/setup-uv#972)) ##### 📚 Documentation - docs: update version references to v9.0.0 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​971](astral-sh/setup-uv#971)) ##### ⬆️ Dependency updates - chore(deps): roll up Dependabot updates [@​eifinger](https://github.com/eifinger) ([#​1013](astral-sh/setup-uv#1013)) - chore(deps): roll up Dependabot updates [@​eifinger](https://github.com/eifinger) ([#​1004](astral-sh/setup-uv#1004)) - chore(deps): roll up Dependabot updates [@​eifinger](https://github.com/eifinger) ([#​994](astral-sh/setup-uv#994)) - chore(deps): bump zizmorcore/zizmor-action from 0.5.7 to 0.6.0 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​976](astral-sh/setup-uv#976)) - chore(deps): bump actions/checkout from 7.0.0 to 7.0.1 @​[dependabot\[bot\]](https://github.com/apps/dependabot) ([#​980](astral-sh/setup-uv#980)) ### [`v9.0.0`](https://github.com/astral-sh/setup-uv/releases/tag/v9.0.0): 🌈 Change `prune-cache` default to `false` [Compare Source](astral-sh/setup-uv@v8.3.2...v9.0.0) ##### Changes This release disables the default cache cache pruning to ease the load on the PyPi infrastructure. Since users might experience more GitHub Actions cache usage which might result in higher costs this is marked as a breaking change. To read more on why we did this (now) you can read the detailed analysis and reasoning in [#​967](astral-sh/setup-uv#967) Besides this big breaking change we also have a small bugfix while building caches for linux distributions that behave a big different than the "big ones" and a speed up in version resolution by only reading the version manifest until a matching version is found saving runtime and network bandwith. ##### 🚨 Breaking changes - Change `prune-cache` default to `false` [@​charliermarsh](https://github.com/charliermarsh) ([#​967](astral-sh/setup-uv#967)) ##### 🐛 Bug fixes - fix: fall back to distribution ID when os-release has no version field [@​cxzhong](https://github.com/cxzhong) ([#​961](astral-sh/setup-uv#961)) ##### 🚀 Enhancements - Speed up version client by partial response reads [@​eifinger](https://github.com/eifinger) ([#​807](astral-sh/setup-uv#807)) ##### 🧰 Maintenance - chore: update known checksums for 0.11.30 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​968](astral-sh/setup-uv#968)) - chore: update known checksums for 0.11.29 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​960](astral-sh/setup-uv#960)) ##### 📚 Documentation - docs: update version references to v8.3.2 @​[github-actions\[bot\]](https://github.com/apps/github-actions) ([#​949](astral-sh/setup-uv#949)) ##### ⬆️ Dependency updates - chore(deps): roll up Dependabot updates [@​eifinger](https://github.com/eifinger) ([#​970](astral-sh/setup-uv#970)) - chore(deps): roll up Dependabot updates [@​eifinger](https://github.com/eifinger) ([#​962](astral-sh/setup-uv#962)) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC40OC4zIiwidXBkYXRlZEluVmVyIjoiNDQuNDguMyIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Reviewed-on: https://git.baer.one/phbaer/waterrower-local-ble/pulls/5
Summary
getLinuxOSNameVersion()throwsFailed to determine Linux distribution. Could not read /etc/os-release or /usr/lib/os-releaseon distributions whose os-release is readable but contains no version field at all — noVERSION_ID, noVERSION_CODENAME, noBUILD_ID. The error message is misleading in that case, and the action fails even though the distribution is perfectly identifiable.Void Linux is such a distribution. Its os-release is:
Unlike Arch (fixed by #912 via
BUILD_ID) and debian:unstable (fixed viaVERSION_CODENAME, #773), Void ships onlyID, so both existing fallbacks miss it. This breaks any workflow usingcontainer: ghcr.io/void-linux/void-glibc-fullwith caching enabled — e.g. SageMath's CI started failing after bumping to v8: https://github.com/sagemath/sage/actions/runs/29456228986/job/87489892141 (worked around downstream in sagemath/sage#42547 by injecting a fakeBUILD_IDinto the container's os-release).This PR adds a last-resort fallback: if
IDis present but no version field is, return the plainID(void), following the same reasoning as #912 — a stable cache key for a rolling release is better than crashing. Distributions with a version field are unaffected, and files without even anIDstill raise the existing error.Test Plan
npm run allpasses (build, biome check, package, 83 unit tests).fs.readFileSyncstubbed):void(previously: throw)ID=arch,BUILD_ID=rolling) →arch-rolling(unchanged)ID=ubuntu,VERSION_ID="24.04") →ubuntu-24.04(unchanged)ID→ still throws (unchanged)