Skip to content

Conversation

AA-Turner
Copy link
Member

Currently, /3/ is not purged when /3.13/ updates (and the same for /dev/). This is a quick fix, a better solution would either to use rewrite rules in Nginx or to check if the symlink target has been rebuilt.

A

Co-authored-by: Hugo van Kemenade <[email protected]>
@hugovk hugovk merged commit 841689c into python:main Oct 24, 2024
5 checks passed
@hugovk
Copy link
Member

hugovk commented Oct 24, 2024

Thanks!

Comment on lines +1001 to +1002
if link.exists():
link.unlink()
Copy link
Member

Choose a reason for hiding this comment

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

I believe this could be simplified further by replacing these two lines with link.unlink(missing_ok=True).

@AA-Turner AA-Turner deleted the always-purge-symlink branch August 15, 2025 16:10
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.

3 participants