Skip to content

Error installing buck-2021.01.12.01.yosemite.bottle.tar.gz #65

@werediver

Description

@werediver

The bottled buck 2021.01.12.01 seems to be broken:

$ brew install buck
Updating Homebrew...
==> Auto-updated Homebrew!
Updated Homebrew from 99991bbc6 to d8a659f5d.
No changes to formulae.

==> Downloading https://github.com/facebook/buck/releases/download/v2021.01.12.01/buck-2021.01.12.01.yosemite.
Already downloaded: /Users/raman/Library/Caches/Homebrew/downloads/2ab45ceec4daf7c5124e199210a577ad8db53a56c80456dd5f9847b020baa0ae--buck-2021.01.12.01.yosemite.bottle.tar.gz
==> Installing buck from facebook/fb
==> Pouring buck-2021.01.12.01.yosemite.bottle.tar.gz
Error: /usr/local/Cellar/buck/2021.01.12.01 is not a directory

Somehow the archive gets unpacked into a different directory:

$ ls -laF /usr/local/Cellar/buck/
total 0
drwxr-xr-x    3 raman  wheel    96 Sep 20 21:53 ./
drwxrwxr-x  195 raman  admin  6240 Sep 20 21:53 ../
drwxr-xr-x    7 raman  wheel   224 Jan 12  2021 2021.01.12.01_1/

$ ls -laF /usr/local/Cellar/buck/2021.01.12.01_1 
total 40
drwxr-xr-x  7 raman  wheel    224 Jan 12  2021 ./
drwxr-xr-x  3 raman  wheel     96 Sep 20 21:53 ../
drwxr-xr-x  3 raman  wheel     96 Jan 12  2021 .brew/
-rw-r--r--  1 raman  wheel    710 Jan 12  2021 INSTALL_RECEIPT.json
-rw-r--r--  1 raman  wheel  11358 Jan 12  2021 LICENSE
-rw-r--r--  1 raman  wheel   3134 Jan 12  2021 README.md
drwxr-xr-x  3 raman  wheel     96 Jan 12  2021 bin/

This can be worked around this way:

$ mv /usr/local/Cellar/buck/2021.01.12.01_1 /usr/local/Cellar/buck/2021.01.12.01

$ buck version
zsh: command not found: buck

$ brew link buck
Linking /usr/local/Cellar/buck/2021.01.12.01... 1 symlinks created.

$ buck
This does not appear to be the root of a Buck project. Please 'cd'
to the root of your project before running buck. If this really is
the root of your project, run
'touch .buckconfig'
and then re-run your buck command.
Homebrew config
$ brew config
HOMEBREW_VERSION: 3.2.13-34-gf9cedd1
ORIGIN: https://github.com/Homebrew/brew
HEAD: f9cedd1fa46c2ebaf069ed461a364668dcdf6f19
Last commit: 6 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 959804e7cbda1156480238a88ade07c7b3ceb559
Core tap last commit: 23 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_EDITOR: /Users/raman/.oh-my-zsh/plugins/emacs/emacsclient.sh
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit kabylake
Clang: 12.0.5 build 1205
Git: 2.33.0 => /usr/local/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 11.6-x86_64
CLT: 12.5.0.22.9
Xcode: 12.5.1

Do you have an idea why it goes this way?

Thanks for your time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions