Skip to content

Conversation

@Wuestengecko
Copy link
Contributor

When checking for markers that exclude the directory that contains them, the hook erroneously expected these markers to be directories instead of files. This breaks with the CACHEDIR.TAG spec, which explicitly states:

This file must be an ordinary file, not for example a symbolic link.

When checking for markers that exclude the directory that contains them,
the hook erroneously expected these markers to be directories instead of
files. This breaks with the CACHEDIR.TAG spec, which explicitly states:

> This file *must* be an ordinary file, not for example a symbolic link.
@mbway mbway self-requested a review December 23, 2025 21:42
@mbway mbway added the bug Something isn't working label Dec 23, 2025
Copy link
Collaborator

@mbway mbway left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

I seem to have missed writing a test for this which is why it slipped through.
I'll merge your fix and add a test.

@mbway mbway merged commit c067cfd into PyO3:main Dec 23, 2025
4 of 5 checks passed
@mbway
Copy link
Collaborator

mbway commented Dec 23, 2025

the mypy lint seems broken (also happens locally). I'll deal with this next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants