Skip to content

Commit 9c1a4f3

Browse files
authored
Fix benchmark generator workspace for "dart run". (dart-archive#137)
1 parent 9026f9f commit 9c1a4f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tool/benchmark_generator/lib/workspace.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
import 'dart:io';
6+
import 'dart:isolate';
67

78
class Workspace {
89
final String name;
910

1011
Directory get directory => Directory.fromUri(
11-
Platform.script.resolve('../../../goldens/foo/lib/generated/$name'));
12+
Isolate.packageConfigSync!.resolve('../goldens/foo/lib/generated/$name'));
1213

1314
Workspace(this.name) {
1415
if (directory.existsSync()) directory.deleteSync(recursive: true);

0 commit comments

Comments
 (0)