dart-lang / homebrew-dart

Dart team's official tap for homebrew.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Removal of pub binary breaks installation script in the formula

mraleph opened this issue · comments

brew upgrade dart
==> Upgrading 1 outdated package:
dart-lang/dart/dart HEAD -> HEAD
==> Upgrading dart-lang/dart/dart
  HEAD -> HEAD

==> Downloading https://storage.googleapis.com/dart-archive/channels/dev/release/2.14.0-321.0.dev/sdk/dartsdk-macos-x64-release.zip
######################################################################## 100.0%
Warning: Your Xcode (12.4) is outdated.
Please update to Xcode 12.5 (or delete it).
Xcode can be updated from the App Store.

Error: An exception occurred within a child process:
  Errno::EACCES: Permission denied @ rb_sysopen - /Users/vegorov/homebrew/Cellar/dart/HEAD/bin/pub

Strange, the pub binary is still in that zip file. I've a PR to see if I can reproduce this on GitHub Actions:
#92

Could be that this is an artifact of the recent re-organization of the files in the tap.

On a fresh install, brew install dart --HEAD worked for me.

I'm going to close this as won't fix because I can't reproduce the issue and there is a workaround (uninstall, untap then tap and install again).

I can't reproduce it either anymore unfortunately.