Repository navigation
chore: sync chore-v2 branch with main #397
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
Changes from 2 commits
f2104f6
93f742e
e283710
04e2098
80859c6
0e7d9aa
7044704
0074707
85f29de
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -2,4 +2,4 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| set -euo pipefail | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| brew upgrade | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| /opt/homebrew/bin/brew upgrade | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hardcoding the path to the
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Homebrew path is hardcoded to Apple Silicon Macs only. The absolute path Consider using a more robust approach that detects the correct Homebrew path: -/opt/homebrew/bin/brew upgrade
+if command -v brew &> /dev/null; then
+ brew upgrade
+else
+ echo "Error: brew not found in PATH" >&2
+ exit 1
+fiAlternatively, if the script is intentionally Apple Silicon-only, document this constraint clearly in a comment or README. 🤖 Prompt for AI Agents
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P3: Hardcoded Homebrew path is specific to Apple Silicon Macs. On Intel Macs, Homebrew is at Prompt for AI agents
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| /opt/homebrew/bin/brew upgrade | |
| if [ -x /opt/homebrew/bin/brew ]; then | |
| /opt/homebrew/bin/brew upgrade | |
| elif [ -x /usr/local/bin/brew ]; then | |
| /usr/local/bin/brew upgrade | |
| else | |
| echo "brew binary not found" >&2 | |
| exit 1 | |
| fi |
Copilot
AI
Dec 6, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The hardcoded path /opt/homebrew/bin/brew assumes Homebrew is installed at the default Apple Silicon location. This will fail on Intel Macs where Homebrew is at /usr/local/bin/brew. Consider checking both locations or using the PATH from the launchd agent configuration which already includes both paths.
| /opt/homebrew/bin/brew upgrade | |
| PATH="/opt/homebrew/bin:/usr/local/bin:$PATH" | |
| brew upgrade |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
lazygit.nvimandvscode-diff.nvimplugins are referenced inlua/plugins.lua(lines 93-94) andlua/keymaps.lua(lines 121, 123-125), but they are missing from this lock file. This will cause runtime errors when trying to use the keymaps. These plugins need to be added to the lock file with their respective repository URLs and commit hashes.