Skip to content

Conversation

@bradhe
Copy link
Contributor

@bradhe bradhe commented Jan 29, 2026

Whoops. cleanup_stale_uv_lock_files is excluding/including the wrong files, leading to attempts to delete the wrong things. This PR inverts the logic, and adds a test to prevent it from regressing.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a critical bug in the cleanup_stale_uv_lock_files function where inverted logic caused the function to attempt deletion of non-UV files while skipping actual UV lock files. The fix negates the condition check and adds a regression test.

Changes:

  • Inverted the logic in cleanup_stale_uv_lock_files to correctly filter UV lock files
  • Added comprehensive test coverage to verify only UV lock files are processed

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bradhe bradhe merged commit e72f208 into develop Jan 29, 2026
5 checks passed
@bradhe bradhe deleted the fixes/attempts-to-delete-wrong-files branch January 29, 2026 16:20
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