You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that Crossplane has been removing shebangs inside patches starting from Master/RC-1.14 versions. It seems like they might be treated as comments and removed from the final string. This issue only arises when you're installing compositions through a configuration package.
crossplane v1.13.2 - no issue universal-crossplane v1.13.2-up.2 - no issue Please note that I also tested the Universal Crossplane (UXP) version with the ordered deletion feature, as it is the latest available UXP version.
haarchri
changed the title
Shebangs removed in patches during compositions installation with configurations Master/RC-1.14
Shebang lines removed in patches during compositions installation with configurations Master/RC-1.14
Sep 15, 2023
@sttts decode on a fully commented file returns an error, "did not find expected node content", which is not easily checkable. Although I agree it would be better not to have to check the content at all, I feel the proposed change won't be so brittle as it's actually checking whether all lines are commented out or separators, which I'd say should be pretty safe.
What happened?
It appears that Crossplane has been removing shebangs inside patches starting from Master/RC-1.14 versions. It seems like they might be treated as comments and removed from the final string. This issue only arises when you're installing compositions through a configuration package.
https://github.com/haarchri/issue-xp-missing-shebang
crossplane v1.13.2 - no issue
universal-crossplane v1.13.2-up.2 - no issue
Please note that I also tested the Universal Crossplane (UXP) version with the ordered deletion feature, as it is the latest available UXP version.
crossplane v1.14.0-rc.0.277.gd40146a9 - issue shebang removed
crossplane v1.14.0-rc.0.347.g9ce5007c - issue shebang removed
How can we reproduce it?
check my repo: https://github.com/haarchri/issue-xp-missing-shebang prepared all versions
What environment did it happen in?
Crossplane version:
The text was updated successfully, but these errors were encountered: