prefer the dart binary located in dart_sdk rather than flutter_sdk #179
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
flutter
package in nix doesn't expose the dart binary in<Flutter SDK>/bin/dart
. The binary is only found in the Dart SDK (<Flutter SDK>/bin/cache/dart_sdk/bin/dart
).This PR prefers the dart binary located in the Dart SDK rather than the Flutter SDK.
Concers
This PR is ready to merge only if the dart binary is always located in the dart_sdk (which I'm pretty use is always the case, but idk).
If the dart_sdk path is found but there is no
<dart_sdk>/bin/dart
then the plugin would fail to get the dart binary. That's because the PR doesn't check if the dart binary exists, only ifpaths.dart_sdk
doesn't exists then it checkspaths.flutter_sdk
.