Fix run.sh credentials path resolution#5799
Merged
Conversation
CREDS_PATH used $BACKEND_DIR (relative) which broke after the script cd'd into Backend-Rust, causing it to look for Backend-Rust/Backend-Rust/google-credentials.json. Use $(pwd) instead. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
Greptile SummaryThis PR fixes a one-line bug in The fix replaces Key observations:
Confidence Score: 5/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["Script starts\nCWD = desktop/"] --> B["BACKEND_DIR = './Backend-Rust'\n(line 77)"]
B --> C["cd '$BACKEND_DIR'\nCWD = desktop/Backend-Rust/\n(line 151)"]
C --> D_OLD["❌ OLD: CREDS_PATH = '$BACKEND_DIR/google-credentials.json'\n= './Backend-Rust/google-credentials.json'\n(relative to CWD → Backend-Rust/Backend-Rust/google-credentials.json)"]
C --> D_NEW["✅ NEW: CREDS_PATH = '$(pwd)/google-credentials.json'\n= '/abs/path/to/Backend-Rust/google-credentials.json'\n(absolute path — always correct)"]
D_OLD --> E_OLD["❌ File not found → exit 1"]
D_NEW --> E_NEW["✅ File found → export GOOGLE_APPLICATION_CREDENTIALS"]
E_NEW --> F["Start Rust backend"]
Last reviewed commit: "fix(desktop): fix ru..." |
Glucksberg
pushed a commit
to Glucksberg/omi-local
that referenced
this pull request
Apr 28, 2026
## Summary - `CREDS_PATH` used `$BACKEND_DIR` (relative `./Backend-Rust`) after the script had already `cd`'d into `Backend-Rust/`, causing it to look for `Backend-Rust/Backend-Rust/google-credentials.json` - Use `$(pwd)` instead since we're already in the right directory 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CREDS_PATHused$BACKEND_DIR(relative./Backend-Rust) after the script had alreadycd'd intoBackend-Rust/, causing it to look forBackend-Rust/Backend-Rust/google-credentials.json$(pwd)instead since we're already in the right directory🤖 Generated with Claude Code