← Back to issue list

Breaking migrations to pathlib

View original Github issue

Metadata

Project
craft-parts
Number
#1572
Type
issue
State
closed
Author
bepri
Labels
Type: Refactor
Created
Updated
Closed

Current evaluation

Resolved via PR #1424. The pathlib migration is stable, using custom YAML serializers to convert Path objects to strings and back in MigrationState. Path set deserialization is verified.

Suggested action:

No scores available.

Issue body

### What needs to get done During #1317, a couple of pain points were found where total migration to pathlib would've been breaking. These were: - `mount` utilities - `executor.collisions` utilities ### Why it needs to get done It feels good to be modern!

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Resolved via PR #1424. The pathlib migration is stable, using custom YAML serializers to convert Path objects to strings and back in MigrationState. Path set deserialization is verified.
qwen/qwen3.6-35b-a3b
Staleness: 50
Complexity: 40
Confidence: 75
Support Request: 5
needs triage Refactoring mount and executor.collisions utilities to pathlib causes breaking changes. The proposal is currently inactive with no comments, assignee, or maintainer acknowledgment.
qwen3.6-35b-a3b-mtp-q6
Staleness: 60
Complexity: 60
Confidence: 80
Support Request: 0
needs triage Refactor to migrate mount and executor.collisions utilities to pathlib. Open for 61 days with no maintainer comments or assignees. Requires triage and scoping of breaking changes.
qwen3.6-35b-a3b-mtp-q6
Staleness: 45
Complexity: 35
Confidence: 80
Support Request: 5
keep open Refactoring to migrate code to pathlib, addressing breaking changes in mount and executor.collisions utilities. Open for 41 days with no comments; needs triage and assignment to proceed.

Update history

Date Change
closed

Related issues

Issue Project State Summary Similarity
#1317 Migrate to pathlib craft-parts open Refactor to replace legacy os.path usage with pathlib. Triaged; a contributor took it on in Oct 2025 but no PR has landed since. PR #1424 partially migrated the codebase, yet ~59 os.path usages remain, so the work is incomplete.
71%