GAM-team / GAM-team/got-your-back

bug: Homebrew error `No such file or directory`

Open
#445 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
3.1k
Forks
245
PR merge metrics
No merged PRs in 30d

Description

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:
1. `brew install gyb`
2. `gyb --action create-project --email example@gmail.com`
3. 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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.