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
{{ message }}
Repository navigation
uv build fails on GitLab where cache directory is in source directory #20050
The build backend we use does not include the cache directory, so this hard error seems rather unfortunate. Ideally we wouldn't have to disable the cache.
@woodruffw I hate to @ people, but I think your opinion on the path forward for this will be valuable. I think we need a workaround for #19991 since this blocks caching with Gitlab CICD.
I've recreated the issue in an example repo: uv_issue_20050. I could not find a successful workaround with v0.11.25 of uv 😭
Activity
Sillocan commentedon Jun 29, 2026
Agh, I just ran into this as well and its a full blocker for caching. Gitlab's caching requires that the folder must be inside the project directory.
Command that fails:
Sillocan commentedon Jun 29, 2026
@woodruffw I hate to @ people, but I think your opinion on the path forward for this will be valuable. I think we need a workaround for #19991 since this blocks caching with Gitlab CICD.
I've recreated the issue in an example repo: uv_issue_20050. I could not find a successful workaround with v0.11.25 of uv 😭
zanieb commentedon Jun 30, 2026
Thanks for the reports. Let me know if #20056 is not sufficient.
Warn when the build cache is inside the source directory (astral-sh#2…
Sillocan commentedon Jun 30, 2026
Thank you for the quick turnaround! It's passing on main now https://gitlab.com/Sillocan/uv_issue_20050/-/jobs/15095330950#L28