uv plugin rewrites non-python shebangs
Metadata
Current evaluation
uv plugin rewrites all executable shebangs, corrupting staged package scripts such as dpkg-maintscript-helper; valid bug with clear reproducer, no fix yet.
Suggested action: keep open
Reason: The issue is a valid, clearly scoped bug: rockcraft/plugins/uv_plugin.py uses `sed -i "1 s|^#\!.*$|...|"`, which rewrites every executable's shebang, unlike craft-parts' base implementation that restricts rewriting to `PARTS_PYTHON_VENV_INTERP_PATH`. The reproducer and log show `/usr/bin/dpkg-maintscript-helper` rewritten to `#!/bin/python3`, causing dpkg failures.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| ~deepseek/deepseek-pro-latest |
Impact:
70
Quick Win:
42
Complexity:
25
Confidence:
85
Actionability:
80
|
keep open | uv plugin rewrites all executable shebangs, corrupting staged package scripts such as dpkg-maintscript-helper; valid bug with clear reproducer, no fix yet. | |
| qwen/qwen3.6-35b-a3b |
Impact:
70
Quick Win:
34
Complexity:
40
Confidence:
80
Actionability:
80
|
keep open | uv plugin rewrites shebangs for all executable files, corrupting non-Python shell scripts from stage-packages like dpkg-maintscript-helper | |
| qwen/qwen3.8-27b |
Impact:
55
Quick Win:
33
Staleness:
75
Complexity:
40
Confidence:
70
Support Request:
5
|
needs triage | uv plugin rewrites shebangs on all executable files (including non-Python shell scripts from stage packages), breaking dpkg maintainer scripts. Bug still present in code; no maintainer response or labels in 460 days. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
90
Complexity:
40
Confidence:
85
Support Request:
5
|
needs triage | The uv plugin incorrectly rewrites non-Python shebangs in staged packages, causing script execution errors. The report lacks labels and maintainer response, remaining unassessed for over a year. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
40
Confidence:
85
Support Request:
10
|
needs triage | The uv plugin incorrectly rewrites shebangs for non-Python scripts, breaking staged packages like python3-venv. Unassessed, no maintainer comments or labels after over a year. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
45
Confidence:
85
Support Request:
5
|
close stale | The uv plugin incorrectly rewrites shebangs for non-Python scripts, breaking dpkg-related shell scripts. The issue remains unlabelled and has been inactive for over a year with no maintainer response. |
Update history
No update history recorded yet.
Related work
-
Related To:
canonical/snapcraft#680
(confidence 70%)
Historical snapcraft PR for Python plugin shebang rewriting; relevant context but not a fix for the uv plugin bug.
Related issues
No related issues found above the similarity threshold.