[SERVER-65066] Cannot tap mongodb/brew: invalid syntax in tap! Created: 30/Mar/22  Updated: 27/Oct/23  Resolved: 04/Apr/22

Status: Closed
Project: Core Server
Component/s: Packaging
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Phil Rajchgot Assignee: Andrew Morrow (Inactive)
Resolution: Community Answered Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

macOS Monterey 12.3
Homebrew 3.4.4


Operating System: ALL
Sprint: Dev Platform 2022-04-18
Participants:

 Description   

When running `brew tap mongodb/brew` on the latest macOS Monterey (and on Big Sur) with the latest Homebrew, I get the following error which makes it impossible to install any MongoDB formulae:

```

Running `brew update --preinstall`...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> Updated Formulae
Updated 4 formulae.
==> Updated Casks
Updated 1 cask.

==> Tapping mongodb/brew
Cloning into '/usr/local/Homebrew/Library/Taps/mongodb/homebrew-brew'...
remote: Enumerating objects: 863, done.
remote: Counting objects: 100% (360/360), done.
remote: Compressing objects: 100% (269/269), done.
remote: Total 863 (delta 190), reused 147 (delta 88), pack-reused 503
Receiving objects: 100% (863/863), 189.86 KiB | 2.09 MiB/s, done.
Resolving deltas: 100% (428/428), done.
Error: Non-symlink alias: /usr/local/Homebrew/Library/Taps/mongodb/homebrew-brew/Aliases/mongodb-community@5.0
Error: Non-symlink alias: /usr/local/Homebrew/Library/Taps/mongodb/homebrew-brew/Aliases/mongodb-mongocryptd@5.0
Error: Cannot tap mongodb/brew: invalid syntax in tap!```

 



 Comments   
Comment by Phil Rajchgot [ 04/Apr/22 ]

@Andrew Morrow That's ok with me. This issue is already the 3rd result for that error on Google so as long as it's not deleted, I think it already helps to supplement the missing troubleshooting information in Homebrew's docs. Feel free to close, thanks.

Comment by Andrew Morrow (Inactive) [ 04/Apr/22 ]

prajchgot@turbulent.ca - I think this would happen with any tap with versioning symlinks if you had globally overridden git's defaults like that. I'd suggest that maybe any troubleshooting guidance along these lines might belong with homebrew itself, rather than with our specific tap? Unless you strongly disagree, I will probably close this issue, as I don't think it represents a bug with our tap or our documentation.

Comment by Phil Rajchgot [ 30/Mar/22 ]

The fix was: `git config --global core.symlinks true`.  Could be nice to add this to troubleshooting steps.

Generated at Thu Feb 08 06:01:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.