finestructure / Hummingbird

A macOS utility that makes window management a breeze
https://hbird.app
MIT License
224 stars 20 forks source link

Homebrew install fails #46

Closed FredrikWendt closed 7 months ago

FredrikWendt commented 7 months ago

The install script incorrectly assumes there are files to move, when in fact there are none.


ceda@studiom1 ~ % brew uninstall hummingbird
==> Uninstalling Cask hummingbird
==> Purging files for version 3.3.0 of Cask hummingbird
ceda@studiom1 ~ % brew install --force finestructure/hummingbird/hummingbird
==> Upgrading 1 outdated package:
finestructure/hummingbird/hummingbird 3.3.0 -> 3.3.0
==> Upgrading hummingbird
==> Downloading https://finestructure.co/s/Hummingbird-330.zip
==> Downloading from https://static1.squarespace.com/static/54c75522e4b025e1ccf5b88f/t/602625612461e3396d9b6e9f/1613112683703/Hummi
############################################################################################################################ 100.0%
==> Purging files for version 3.3.0 of Cask hummingbird
Error: finestructure/hummingbird/hummingbird: No such file or directory @ rb_file_s_rename - (/opt/homebrew/Caskroom/hummingbird/3.3.0, /opt/homebrew/Caskroom/hummingbird/3.3.0.upgrading)
FredrikWendt commented 7 months ago

Workaround: run rm -rf /opt/homebrew/Caskroom/hummingbird before install.

finestructure commented 7 months ago

Is it perhaps the --force flag that's the problem?

All the rest seems to be plain Homebrew machinery, the homebrew setup file is dead simple: https://github.com/finestructure/homebrew-Hummingbird/blob/a13796b2a61ee3988a74a7c74e7e3d6150da913a/Casks/hummingbird.rb#L2

FredrikWendt commented 7 months ago

Hmm, this must've been a result of an aborted brew upgrade leaving some folder behind. :-/ Can't reproduce it now.

finestructure commented 7 months ago

Ah, good to know, thanks for following up!