dart-archive / bazel

Bazel support for Dart projects [EXPERIMENTAL]
https://pub.dartlang.org/packages/dazel
33 stars 13 forks source link

Avoid downloading DART SDK and use the local installed #164

Open dam0vm3nt opened 7 years ago

dam0vm3nt commented 7 years ago

Dart SDK is being downloaded again and again for each project. Apart of the waste of bandwidth and disk space it is not natural for an user to have one SDK used to run pub run dazel build that's not potentially the same used for the actual build.

We all know about hermetic issues but can't this be avoided with some option on pub run dazel init ?

jakemac53 commented 7 years ago

Blocked on https://github.com/dart-lang/rules_dart/issues/57

natebosch commented 7 years ago

It's possible today to use a local SDK, however if you do so you can expect to hit compatibility errors if your SDK is not the same version as rules_dart expects.

Make sure you are on dazel 0.3.4 and use pub run dazel init --locak-sdk="/path/to/sdk"

dam0vm3nt commented 7 years ago

k, tnx!