Skip to content

getSdkPath doesn't work when using the dart executable produced when building from source. #818

Open
@sigurdm

Description

@sigurdm
// test.dart
import 'package:cli_util/cli_util.dart';

main() {
  print(getSdkPath());
}
dart-sdk/sdk$ out/ReleaseX64/dart test.dart
/usr/local/google/home/sigurdm/projects/dart-sdk/sdk/out

That is not really a helpful directory.
I am not sure where the out/ReleaseX64/dart binary reads its corelibs from, but I think that should be the returned directory.

This might be a duplicate of: #816 - not sure

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions