dart-lang / homebrew-dart

Dart team's official tap for homebrew.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MacOS.prefer_64_bit is deprecated.

voldemortensen opened this issue · comments

While upgrading dart I received this error:
Error: dart-lang/dart/dart: undefined method prefer_64_bit?' for OS::Mac:Module`

Upon further investigation I found that the prefer_64_bit method has been deprecated. See Homebrew/brew@170c549#diff-1c1e64ec9fa3342388d0ddb7a9607eca

The new way to check is the is_64_bit method.

CC @whesse @athomas – should be an easy fix

@voldemortensen, shouldn't that be Hardware::CPU.is_64_bit? instead of MacOS.is_64_bit??

commented

Hi, it still gives the error. Isn't it fixed yet?

Same problem here... Perhaps I should downgrade homebrew to get it working?

This is not completely fix yet – Need to update https://github.com/dart-lang/sdk/tree/master/tools/apps/update_homebrew too!

Thanks for the fix!