Skip to content

Locate Dart SDK and executable via package:cli_util - #2878

Open
sigurdm wants to merge 1 commit into
dart-lang:mainfrom
sigurdm:cli-util-sdk-resolution
Open

sigurdm wants to merge 1 commit into
dart-lang:mainfrom
sigurdm:cli-util-sdk-resolution

Conversation

@sigurdm

@sigurdm sigurdm commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

Use sdkPath and dartExecutable from package:cli_util (^0.6.0) in lib/src/util.dart instead of shelling out to which dart / where.exe dart.exe.

This ensures webdev locates the Dart SDK and dart executable across DART_ROOT/DART_SDK, Platform.resolvedExecutable, PATH (with symlink and Flutter cache resolution), and FLUTTER_ROOT when running as an AOT-compiled binary (such as via dart install webdev or dart run webdev@).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant