Skip to content

fix: stop running Homebrew as root when no non-root user is resolved - #127

Closed
gvatsal60 wants to merge 1 commit into
masterfrom
fix/brew-not-run-as-root
Closed

gvatsal60 wants to merge 1 commit into
masterfrom
fix/brew-not-run-as-root

Conversation

@gvatsal60

Copy link
Copy Markdown
Owner

When logname fails (common in containers/CI), NON_ROOT_USER defaults to 'nobody' and the fallback branch ran brew commands as root, which Homebrew rejects. Now attempts to detect the brew installation owner via stat and skips gracefully with a clear error if no valid non-root user exists.

When logname fails (common in containers/CI), NON_ROOT_USER defaults to
'nobody' and the fallback branch ran brew commands as root, which Homebrew
rejects. Now attempts to detect the brew installation owner via stat and
skips gracefully with a clear error if no valid non-root user exists.
Copilot AI lite review requested due to automatic review settings September 27, 2026 09:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@sonarqubecloud

Copy link
Copy Markdown

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@kilo-code-bot

kilo-code-bot Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (1 file)
  • .update.sh

Reviewed by free · Input: 0 · Output: 0 · Cached: 0

@gvatsal60 gvatsal60 closed this Sep 28, 2026
@gvatsal60
gvatsal60 deleted the fix/brew-not-run-as-root branch September 28, 2026 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants