Skip to content

uv build fails on GitLab where cache directory is in source directory #20050

Description

@RazerM

Summary

On GitLab, cache directories are relative to the project directory:

Both artifacts and caches define their paths relative to the project directory, and can’t link to files outside it.

uv's own GitLab docs also show this pattern.

uv build fails in this scenario due to #19991

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.

Platform

N/A

Version

0.11.25

Python version

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions