You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@magpie.apache.org by "potiuk (via GitHub)" <gi...@apache.org> on 2026/10/16 01:46:48 UTC

[PR] fix(setup): run check-upgrade.sh via bash to avoid execute permission dependency [magpie]

potiuk opened a new pull request, #1645:
URL: https://github.com/apache/magpie/pull/1645

   ## Summary
   
   Extension managers that install Magpie from GitHub archives (rather than `git clone`) do not preserve executable file permissions. The `SessionStart` hook in `magpie-setup` invokes `check-upgrade.sh` directly, causing `Permission denied` (exit code 126) when the execute bit is missing.
   
   Prefix the hook command with `bash` so the script runs as an interpreted file, independent of the execute permission bit. This affects all agents that install extensions via archive extraction, including Junie.
   
   ## Type of change
   
   - [ ] New feature (non-breaking change which adds functionality)
   - [x] Bug fix (non-breaking change which fixes an issue)
   - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
   - [ ] Documentation update
   
   ## Test plan
   
   Manually verified by:
   1. Removing execute permission from `check-upgrade.sh`: `chmod -x check-upgrade.sh`
   2. Confirming the original command fails with `Permission denied`
   3. Confirming `bash check-upgrade.sh` succeeds regardless of the execute bit
   
   The change is a one-line JSON edit — no new code paths, tests, or static checks affected.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@magpie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(setup): run check-upgrade.sh via bash to avoid execute permission dependency [magpie]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk merged PR #1645:
URL: https://github.com/apache/magpie/pull/1645


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@magpie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org