commit | 14990d2fb7cf27bde980073a316c23e03334aca7 | [log] [tgz] |
---|---|---|
author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | Fri Mar 01 22:15:31 2024 +0000 |
committer | Commit Queue <dart-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Mar 04 09:43:23 2024 +0000 |
tree | 0aa69ef251592dec52bc17d76d0002a1d567f2fd | |
parent | 22cb93a04d58d64f81878a0df7ed4a09a2dff24b [diff] |
Bump googleapis from 12.0.0 to 13.0.0 Closes https://github.com/dart-lang/homebrew-dart/pull/176 GitOrigin-RevId: 3c565ff9ea1bd51de3f244396f0f9f0284b0f8f8 Change-Id: I4a68cc9bffddb5e032fcd2b34ed3ed2ffc7cb43a Reviewed-on: https://dart-review.googlesource.com/c/homebrew-dart/+/354926 Reviewed-by: Jonas Termansen <sortie@google.com> Commit-Queue: Jonas Termansen <sortie@google.com>
This is the official Dart tap for homebrew.
Mac users can use these formulae to easily install and update Dart SDK. Both dev and stable channels are supported.
If you don't have homebrew, install it from their homepage.
Then, add this tap:
brew tap dart-lang/dart
To install the Dart SDK:
brew install dart
Tip: Once installed, homebrew will print the path to the Dart SDK. Use this path to configure Dart support in your IDE (like WebStorm).
Simply run:
brew update brew upgrade dart
To install dev channel releases, instead of the stable ones, add a --head
flag after the brew commands:
brew install dart --head
Note, when updating dev releases, homebrew doesn't always update to the latest version (see https://github.com/Homebrew/legacy-homebrew/issues/13197). In order to upgrade to the latest dev release, run:
brew reinstall dart
To install a specific dart version run brew install dart@2.8
. This installs the latest 2.8
release including security patches, i.e. 2.8.1
.
To use the specific version in your IDE or in scripts use the SDK you find under /usr/local/opt/dart@2.8/libexec
.
It is supported to install multiple dart versions in parallel. The dart
executable in PATH
will continue to link to the dart
or dart-beta
formula. Installing dart@2.8
alone doesn't add the dart
executable to the user PATH
.
Many tools, such as editors, ask you to specify the Dart SDK installation directory. After installing via homebrew you can use the path HOMEBREW_INSTALL/opt/dart/libexec
, where HOMEBREW_INSTALL
is the path to your homebrew installation directory (running brew --prefix
on the command line will display it).