-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v3 regression over v2: opam exec
now fails with "Exec format error" on shell scripts on Windows
#866
Comments
Is it related to this? #815 |
You are suggesting that it might be related to #815 (comment) in particular, where perhaps indirecting through |
What happens if you run this with the latest v3? |
If I understand correctly, even when using Cygwin, you still need to invoke the shell explicitly. This is because opam is compiled as a native Windows binary (opam.exe) and utilises the Windows CreateProcess API to launch processes. This API does not recognise shell scripts as directly executable files, regardless of whether you’re operating within a Cygwin environment. So, to run your shell script, you must explicitly call an interpreter like bash. |
Can you execute it by doing the following?
|
Trying that out at https://github.com/JasonGross/test/actions/runs/13693808963/job/38291718192 |
Yes, this variant works fine |
Nice. This is not strictly an issue with this action, as I believe it comes from opam now native rather than regression. I'm going to close this issue. |
https://github.com/JasonGross/test/actions/runs/10953316111/job/30413386004
logs_28625164728.zip
Full yml file
The text was updated successfully, but these errors were encountered: