Merged
Conversation
Drop the sudo-to-/usr/local/bin install path in favor of a userland install at ~/.local/bin. The installer creates the dir, drops the binary, and warns if ~/.local/bin isn't on PATH. README updated to match and to use the curl | bash form.
Member
Author
TestedmacOS (arm64, host)
Ubuntu 22.04 (Docker, fresh container)
|
patelspratik
previously approved these changes
May 4, 2026
Contributor
|
brev upgrade text needs to be altered to match that sudo is no longer required brev upgrade also needs to be made aware as the upgrade will install to the new location |
Address PR review feedback: the install script writes to ~/.local/bin without sudo, so brev upgrade no longer gates on sudo and the prompt text reflects the new location. After a direct upgrade we also detect when the running binary lives in /usr/local/bin or /usr/bin (left over from a pre-~/.local/bin install) and tell the user to remove it so PATH resolution doesn't keep pinning them to the old version.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #379 +/- ##
==========================================
+ Coverage 18.18% 18.85% +0.66%
==========================================
Files 140 140
Lines 18684 18206 -478
==========================================
+ Hits 3398 3433 +35
+ Misses 14912 14390 -522
- Partials 374 383 +9
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
patelspratik
approved these changes
May 5, 2026
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
bin/install-latest.sh,bin/install-latest-linux.sh) now drop the binary into~/.local/binwith nosudo, creating the directory if needed and warning when it's not onPATH.sudofrom the Linux/WSL install commands, switched to thecurl ... | bashform, and added a short note pointing users at~/.local/binand thePATHline to add if missing.Test plan
bash bin/install-latest.shon macOS with~/.local/binalready on PATH — confirm install succeeds with no warning.bash bin/install-latest.shon a fresh Linux box without~/.local/binon PATH — confirm the warning prints with the suggestedexportline.curl ... | bash.