← Back to issue list

python plugin: only replace proper shebangs.

View original Github issue

Metadata

Project
snapcraft
Number
#830
Type
pull request
State
merged
Author
sergiusens
Labels
Created
Updated
Closed

Current evaluation

Merged a python plugin fix that restricts shebang replacement to file beginnings. Approved by one reviewer, the change resolves plainbox snap conflicts with a +6/-1 diff across two files.

Suggested action:

No scores available.

Issue body

Only replace shebangs at the beginning of a file. LP: #1626587 Signed-off-by: Sergio Schvezov sergio.schvezov@ubuntu.com

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged a python plugin fix that restricts shebang replacement to file beginnings. Approved by one reviewer, the change resolves plainbox snap conflicts with a +6/-1 diff across two files.
qwen3.6-35b-a3b-mtp-q6 Merged. The python plugin now restricts shebang replacement to file beginnings, resolving plainbox snap conflicts tracked in LP #1626587.
qwen3.6-35b-a3b-mtp-q6 Merged a Python plugin update that restricts shebang replacement to file beginnings. This resolves plainbox snap conflicts and closes LP #1626587.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#823 plainbox-provider plugin: rewrite python shebangs snapcraft merged Merged rewrite of Python shebangs in the plainbox-provider plugin to use /usr/bin/env python. Approved by two reviewers across five files. Resolves LP: #1626587. Missing unit tests were noted but acknowledged as unavailable.
79%
#311 plugins: fix python shebang rockcraft merged Merged a fix for the Python shebang in plugins. The change replaces hardcoded interpreters with ${PARTS_PYTHON_INTERPRETER} to respect user overrides. Approved by two reviewers and merged.
78%
#680 Rewrite shebangs generated by the python plugins. snapcraft merged Merged changes that rewrite Python plugin shebangs to use env instead of hardcoded paths, resolving Launchpad bug #1597919. After adding requested integration tests, the changes were approved and merged across 13 files.
75%
#2112 repo: fix all python shebangs in stage-packages snapcraft merged Merged fix aligns Python shebang replacement in stage-packages with standard plugin behavior, applying it throughout the entire part instead of only bin directories. Removes sitecustomize.py to prevent part clashes. Resolves LP: #1766662.
73%
#1626587 plainbox-provider plugin python shebangs are mismatched snapcraft (launchpad) closed Closed without resolution. The plainbox-provider plugin did not align Python shebangs with the python plugin, causing Snapcraft 2.17 build failures. No fix was applied, indicating the report was abandoned or superseded by later updates.
73%