Consolidate `os-release` utils with other repositories
Metadata
Current evaluation
Consolidate os-release parsing in Craft Parts with Craft Providers/Charmcraft. Triaged; maintainers agreed to switch to the `distro` library. No PR yet; OsRelease class still present in codebase.
Suggested action: keep open
Reason: Maintainer bepri explicitly agreed on 2025-09-23 to switch to the `distro` library, and the OsRelease class is still present in craft_parts/utils/os_utils.py (line 290) with no PR yet addressing the consolidation. The issue is triaged, scoped, and awaiting implementation.
Impact:
30
Quick Win:
18.0
Staleness:
55
Complexity:
40
Confidence:
72
Support Request:
0
Issue body
### What needs to get done
Consolidate the strategy used in Craft Parts for parsing the `os-release` file with those found in Craft Providers or Charmcraft.
### Why it needs to get done
Spawned from the TODO comment here:
https://github.com/canonical/craft-parts/blob/a20b49d1b27ecd00ab74eb786d0f2403184adc97/craft_parts/utils/os_utils.py#L277
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.8-27b |
Impact:
30
Quick Win:
18.0
Staleness:
55
Complexity:
40
Confidence:
72
Support Request:
0
|
keep open | Consolidate os-release parsing in Craft Parts with Craft Providers/Charmcraft. Triaged; maintainers agreed to switch to the `distro` library. No PR yet; OsRelease class still present in codebase. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
85
Complexity:
25
Confidence:
75
Support Request:
0
|
keep open | Triaged task to consolidate os-release parsing across Craft Parts, Providers, and Charmcraft. Suggests switching to the distro package. Inactive for over 9 months with no assignee or PR. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
70
Complexity:
65
Confidence:
80
Support Request:
5
|
keep open | Consolidate os-release parsing logic across Craft Parts, Craft Providers, and Charmcraft. Triaged by maintainer, currently inactive for ~9.5 months with a suggestion to switch to the distro library. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
65
Complexity:
45
Confidence:
85
Support Request:
0
|
keep open | Consolidate os-release parsing across Craft Parts, Providers, and Charmcraft using the distro library. Triaged and under discussion, but inactive for over eight months. Awaiting assignment or implementation. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #44 utils: add helpers to read os-release entries | craft-parts | merged | Merged after approval and CI. Adds os-release parsing helpers ported from Snapcraft with tests. Raises errors on failure. Maintainers discussed extracting the logic into a standalone utility package. |