expo / config-plugins

Out-of-tree Expo config plugins for packages that haven't adopted the config plugin system yet.
427 stars 91 forks source link

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

Open SlideeScherz opened 10 months ago

SlideeScherz commented 10 months ago

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...

> dura-net@1.0.0 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 commented 10 months ago

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 commented 4 months ago

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

SlideeScherz commented 4 months ago

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 commented 4 months ago

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

tindery commented 1 month ago

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