bazel icon indicating copy to clipboard operation
bazel copied to clipboard

Avoid downloading DART SDK and use the local installed

Open dam0vm3nt opened this issue 8 years ago • 3 comments

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 ?

dam0vm3nt avatar Mar 19 '17 19:03 dam0vm3nt

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

jakemac53 avatar Mar 20 '17 13:03 jakemac53

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"

natebosch avatar Mar 20 '17 17:03 natebosch

k, tnx!

dam0vm3nt avatar Mar 22 '17 11:03 dam0vm3nt