dart-archive / bazel

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

Bazel fails, seemingly can't find dart or dartanalyzer #168

Open matanlurey opened 7 years ago

matanlurey commented 7 years ago
Process exited with status 126 [sandboxed].
external/dart_sdk/bin/dartanalyzer: line 31: /private/var/tmp/_bazel_matan/2d8797e501685dd0be025159bf54d03b/bazel-sandbox/84051f69-83fc-4e18-ac73-6499d5110323-0/inputs/external/dart_sdk/bin/dart: No such file or directory
external/dart_sdk/bin/dartanalyzer: line 31: exec: /private/var/tmp/_bazel_matan/2d8797e501685dd0be025159bf54d03b/bazel-sandbox/84051f69-83fc-4e18-ac73-6499d5110323-0/inputs/external/dart_sdk/bin/dart: cannot execute: No such file or directory
Use --strategy=DartSummary=standalone to disable sandboxing for the failing actions.
natebosch commented 7 years ago

See also https://github.com/dart-lang/bazel/issues/98 and https://github.com/bazelbuild/bazel/issues/2000

matanlurey commented 7 years ago

Are we planning on following up or just let it slide for a bit? I tried to get a bazel example of my resolveSource in pkg/build and gave up.

natebosch commented 7 years ago

We plan on addressing it eventually, for now the workaround is to specify standalone for the actions that fail. When you got this were you running with dazel or with bazel directly? If it was bazel use the workaround. If it was dazel add more details and it should be an easy fix.