Skip to content
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

@config-plugins/detox pre-install-hook failure: Permission denied #187

Open
SlideeScherz opened this issue Sep 1, 2023 · 5 comments
Open
Labels
bug Something isn't working

Comments

@SlideeScherz
Copy link

SlideeScherz commented Sep 1, 2023

Summary

ENV INFO:
OS: Win10
VSCODE
vscode bash integrated terminal, gitbash as admin

Following the setup from https://docs.expo.dev/build-reference/e2e-tests/ after running:

eas build --platform all --profile test

results in:

✖ Build failed

🤖 Android build failed:
Unknown error. See logs for more information.

Upon checking EAS dashboard, logs for this build say:

Script 'eas-build-pre-install' is present in package.json, running it...

> [email protected] eas-build-pre-install

> ./eas-hooks/eas-build-pre-install.sh

[stderr] 

sh: 1: ./eas-hooks/eas-build-pre-install.sh: Permission denied

npm run eas-build-pre-install exited with non-zero code: 126

Additionally, ran the command in the Integrated terminal as well as GitBash as Admin to no avail:

chmod +x eas-hooks/*.sh

Config Plugin

@config-plugins/detox

What platform(s) does this occur on?

Android, iOS

SDK Version

49

Reproducible demo

https://github.com/SlideeScherz/expo-issue-demos/tree/main/eas-tests-example

@SlideeScherz SlideeScherz added the bug Something isn't working label Sep 1, 2023
@SlideeScherz
Copy link
Author

Update: My file permissions:

Scott@scott-thinkpad-t15 MINGW64 ~/Documents/GitHub/<repo-name> (dev)
$ cd eas-hooks

Scott@scott-thinkpad-t15 MINGW64 ~/Documents/GitHub/<repo-name>/eas-hooks (dev)
$ ls -la
total 16
drwxr-xr-x 1 Scott 197609    0 Sep  1 00:31 ./
drwxr-xr-x 1 Scott 197609    0 Sep  6 16:41 ../
-rwxr-xr-x 1 Scott 197609 1101 Sep  1 00:31 eas-build-on-success.sh*
-rwxr-xr-x 1 Scott 197609 1152 Sep  1 00:31 eas-build-pre-install.sh*

@Eonfuzz
Copy link

Eonfuzz commented Feb 13, 2024

Running into the same issue now, did you ever get it working?

@SlideeScherz
Copy link
Author

Running into the same issue now, did you ever get it working?

No didn't explore Detox any further after this. Maybe expo 50 has a fix ?

@Eonfuzz
Copy link

Eonfuzz commented Feb 13, 2024

Yeah, trying it on expo 50 and hitting the same blocker. Dang shame.
Thanks for the quick response mate.

@tindery
Copy link

tindery commented May 13, 2024

I'm having the same issue, a temporary workaround was to run the build command from WSL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants