github astral-sh/setup-uv v4.0.0
v4.0.0 🌈 Fail when cache local path does not exist when trying to cache

latest releases: v4.2, v4, v4.2.0...
11 days ago

🚨 Breaking change 🚨

By default, the action will now fail if caching is enabled but there is nothing to upload (the uv cache directory does not exist).
If you want to ignore this, set the ignore-nothing-to-cache input to true.

- name: Ignore nothing to cache
  uses: astral-sh/setup-uv@v3
  with:
    enable-cache: true
    ignore-nothing-to-cache: true

In previous releases only an error got logged when saving the cache failed. In most cases users did not realize something was wrong with their config.

image

Changes

🚨 Breaking changes

  • Fail when cache local path does not exist when trying to cache @eifinger (#163)

🐛 Bug fixes

  • Fail when cache local path does not exist when trying to cache @eifinger (#163)
  • Remove working dir from cacheDependencyGlob error message @eifinger (#162)

📚 Documentation

Don't miss a new setup-uv release

NewReleases is sending notifications on new releases.