[CP] [ CLI ] Fix issue where 'dart build' would fail to find the 'dart' when run from PATH #56500
Labels
area-dart-cli
Use area-dart-cli for issues related to the 'dart' command like tool.
cherry-pick-approved
Label for approved cherrypick request
cherry-pick-review
Issue that need cherry pick triage to approve
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Commit(s) to merge
https://dart-review.googlesource.com/c/sdk/+/376860
https://dart-review.googlesource.com/c/sdk/+/377542
Target
stable
Prepared changelist for beta/stable
https://dart-review.googlesource.com/c/sdk/+/381041
Issue Description
dart build
was exiting with an error stating that the dart executable could not be found anddart devtools
was throwing an exception when run fromPATH
.What is the fix
Use the resolved SDK path determined by DartDev for locating snapshots to locate the path of the
dart
executable rather than relying solely onPlatform.executable
.Why cherry-pick
This is impacting users of
dart devtools
as it is completely unusable when runningdart
fromPATH
, which is a common workflow.Risk
Low
Issue link(s)
#56080, #56306, #56499
Extra Info
No response
The text was updated successfully, but these errors were encountered: