Homebrew / brew

🍺 The missing package manager for macOS (or Linux)
https://brew.sh
BSD 2-Clause "Simplified" License
41.64k stars 9.79k forks source link

Started getting errors ~2 days ago #18790

Closed gwww closed 2 weeks ago

gwww commented 2 weeks ago

brew doctor output

Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: You have uncommitted modifications to Homebrew/brew.
If this is a surprise to you, then you should stash these modifications.
Stashing returns Homebrew to a pristine state but can be undone
should you later need to do so for some reason.
  cd /opt/homebrew && git stash -u && git clean -d -f

Uncommitted files:
  UD Library/Homebrew/sorbet/rbi/gems/pry@0.15.0.rbi
  UD Library/Homebrew/sorbet/rbi/gems/rubocop-ast@1.36.1.rbi

Verification

brew config output

HOMEBREW_VERSION: 4.4.6-19-gc81cd0b-dirty
ORIGIN: https://github.com/Homebrew/brew
HEAD: c81cd0b929fd44b0a2acf2d55afbb9590b323657
Last commit: 3 hours ago
Core tap JSON: 19 Nov 14:50 UTC
Core cask tap JSON: 19 Nov 14:50 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_BAT_THEME: Nord
HOMEBREW_CASK_OPTS: []
HOMEBREW_EDITOR: /opt/homebrew/bin/nvim
HOMEBREW_MAKE_JOBS: 10
HOMEBREW_NO_ENV_HINTS: set
HOMEBREW_SORBET_RUNTIME: set
Homebrew Ruby: 3.3.6 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/bin/ruby
CPU: 10-core 64-bit arm_firestorm_icestorm
Clang: 16.0.0 build 1600
Git: 2.47.0 => /opt/homebrew/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.1-arm64
CLT: 16.1.0.0.1.1729049160
Xcode: N/A
Rosetta 2: false

### What were you trying to do (and why)?

`brew outdated`

### What happened (include all command output)?

(My commands are prefaced with `>>>`. The 3 commands below issued in sequence with no interleaving commands. The third command was issued as the recommendation from running `brew doctor`.

brew outdated ==> Auto-updating Homebrew... Library/Homebrew/dev-cmd/generate-cask-ci-matrix.rb already exists, no checkout Library/Homebrew/sorbet/rbi/dsl/homebrew/dev_cmd/generate_cask_ci_matrix.rbi already exists, no checkout Library/Homebrew/sorbet/rbi/gems/pry@0.15.0.rbi already exists, no checkout Library/Homebrew/sorbet/rbi/gems/rubocop-ast@1.36.1.rbi already exists, no checkout Library/Homebrew/test/dev-cmd/generate-cask-ci-matrix_spec.rb already exists, no checkout error: could not restore untracked files from stash ==> Auto-updated Homebrew! ==> Updated Homebrew from ad2e330026 to c81cd0b929. Updated 2 taps (homebrew/core and homebrew/cask). ==> New Formulae mergiraf ==> New Casks beyond-compare@4 djstudio font-maple-mono-nf last-window-quits teleport

brew doctor Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: You have uncommitted modifications to Homebrew/brew. If this is a surprise to you, then you should stash these modifications. Stashing returns Homebrew to a pristine state but can be undone should you later need to do so for some reason. cd /opt/homebrew && git stash -u && git clean -d -f

Uncommitted files: UD Library/Homebrew/sorbet/rbi/gems/pry@0.15.0.rbi UD Library/Homebrew/sorbet/rbi/gems/rubocop-ast@1.36.1.rbi

cd /opt/homebrew && git stash -u && git clean -d -f Library/Homebrew/sorbet/rbi/gems/pry@0.15.0.rbi: needs merge Library/Homebrew/sorbet/rbi/gems/rubocop-ast@1.36.1.rbi: needs merge error: could not write index

What did you expect to happen?

No errors; I have not touched the homebrew installation. I usually only do brew outdated and brew upgrade.

Step-by-step reproduction instructions (by running brew commands)

See output above.
ZhongRuoyu commented 2 weeks ago

Please try brew update-reset.