got-your-back
got-your-back copied to clipboard
bug: Homebrew error `No such file or directory`
Please confirm the following:
- [x] I have upgraded to the latest GYB release from https://github.com/jay0lee/got-your-back/releases and I still have this issue.
- [x] I am typing the command as described in the GAM Wiki at https://github.com/jay0lee/got-your-back/wiki
Full steps to reproduce the issue:
-
brew install gyb -
gyb --action create-project --email [email protected] - See the error
-
[Errno 2] No such file or directory: '/opt/homebrew/etc/gyb/client_secrets.json' -
ERROR: [Errno 2] No such file or directory: '/usr/local/etc/gyb/oauth2service.json'
-
Expected outcome (what are you trying to do?):
No errors
Actual outcome (what errors or bad behavior do you see instead?):
-
[Errno 2] No such file or directory: '/opt/homebrew/etc/gyb/client_secrets.json' -
ERROR: [Errno 2] No such file or directory: '/usr/local/etc/gyb/oauth2service.json'
Fixes:
Ensure the directory exists on the correct architecture (probably easier to do in the python script)
- x86_64
mkdir -p /usr/local/etc/gyb - arm64
mkdir -p /opt/homebrew/etc/gyb
Once those folders exist, the scripts run without any issues
Same issue...