You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I work on a monorepo with multiple python projects each with its own uv.lock file. I want to be able to cache uv with a name that indicates the package name so I can be able to cache it only when needed, and also to avoid overwriting cached files that belong to different python projects. Currently it's not possible or am I missing something?
The text was updated successfully, but these errors were encountered:
If you want to work with the bird-feeder project you can use:
- name: Use the bird-feeder cacheid: setup-uvuses: astral-sh/setup-uv@v3with:
enable-cache: truecache-suffix: "bird-feeder"cache-dependency-glob: "**/bird-feeder/uv.lock"
If you want to work with the seeder project you can use:
- name: Use the seeder cacheid: setup-uvuses: astral-sh/setup-uv@v3with:
enable-cache: truecache-suffix: "seeder"cache-dependency-glob: "**/seeder/uv.lock"
If you want a cache that gets invalidated when any of the two changes:
- name: Invalidate the cache when either project changesid: setup-uvuses: astral-sh/setup-uv@v3with:
enable-cache: truecache-dependency-glob: "**/uv.lock"
It might be easier to maintain to just have a single cache for the whole monorepo and live with the fact that it might always contain dependency DepA even though it is only used in one project.
Based on the differences between the dependencies of your different projects it might be more efficient to use a different cache per project.
Effiency here means that the cache is smaller and therefore faster/cheaper to download from the GitHub Actions cache when one of your workflow runs starts.
I work on a monorepo with multiple python projects each with its own
uv.lock
file. I want to be able to cache uv with a name that indicates the package name so I can be able to cache it only when needed, and also to avoid overwriting cached files that belong to different python projects. Currently it's not possible or am I missing something?The text was updated successfully, but these errors were encountered: