astral-sh-setup-uv/src
Kevin Stillhammer 58b6d7b303
fix: add OS version to cache key to prevent binary incompatibility (#716)
## Summary

- Adds OS name and version (e.g., `ubuntu-22.04`, `macos-14`,
`windows-2022`) to cache keys to prevent binary incompatibility when
GitHub updates runner images
- Fixes issue where cached uv binaries compiled against older
glibc/library versions fail on newer runner OS versions

## Changes

- Added `getOSNameVersion()` function to `src/utils/platforms.ts` with
OS-specific detection for Linux (via `/etc/os-release`), macOS (Darwin
kernel version mapping), and Windows
- Updated cache key format to include OS version, bumped `CACHE_VERSION`
to `"2"`
- Added `cache-key` output to expose the generated cache key for
debugging
- Added `test-cache-key-os-version` job testing across multiple OS
versions
- Updated `docs/caching.md` with cache key documentation

Closes #703
2025-12-13 17:25:42 +01:00
..
cache fix: add OS version to cache key to prevent binary incompatibility (#716) 2025-12-13 17:25:42 +01:00
download chore: update known checksums for 0.9.17 (#714) 2025-12-10 08:18:18 +01:00
hash Bump biome to v2 (#515) 2025-08-12 20:12:10 +00:00
utils fix: add OS version to cache key to prevent binary incompatibility (#716) 2025-12-13 17:25:42 +01:00
version Respect UV_CACHE_DIR and cache-dir (#612) 2025-10-07 16:08:30 +02:00
save-cache.ts allow cache-local-path w/o enable-cache (#707) 2025-12-07 17:52:54 +01:00
setup-uv.ts allow cache-local-path w/o enable-cache (#707) 2025-12-07 17:52:54 +01:00
update-known-versions.ts Use node24 instead of node20 (#608) 2025-10-07 08:44:57 +02:00