Skip to content

Set working-directory for setup-uv#29

Merged
wjt merged 1 commit intomainfrom
push-uokrxusklxwp
May 30, 2025
Merged

Set working-directory for setup-uv#29
wjt merged 1 commit intomainfrom
push-uokrxusklxwp

Conversation

@wjt
Copy link
Copy Markdown
Member

@wjt wjt commented May 30, 2025

setup-uv version 6 removed the pyproject-file argument, and added working-directory.

You might hope that setting working-directory will mean that we can remove the cache-dependency-glob argument (since the default includes uv.lock and pyproject.toml) and also avoid needing to set ignore-empty-workdir to squash an "Empty workdir detected" warning, but sadly the "empty working directory" check and the cache glob expansion code both ignore the working-directory argument. Set the latter and expand the definition of the former.

Fixes #28

setup-uv version 6 removed the pyproject-file argument, and added
working-directory.

You might hope that setting working-directory will mean that we can
remove the cache-dependency-glob argument (since the default includes
uv.lock and pyproject.toml) and also avoid needing to set
ignore-empty-workdir to squash an "Empty workdir detected" warning, but
sadly the "empty working directory" check and the cache glob expansion
code both ignore the working-directory argument. Set the latter and
expand the definition of the former.

Fixes #28
@wjt wjt merged commit 7e3f05b into main May 30, 2025
1 check passed
@wjt wjt deleted the push-uokrxusklxwp branch May 30, 2025 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Empty workdir detected" warning

1 participant