Skip to content

Commit

Permalink
Fix benchmark generator workspace for "dart run". (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmorgan authored Nov 8, 2024
1 parent 9026f9f commit 9c1a4f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tool/benchmark_generator/lib/workspace.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
// BSD-style license that can be found in the LICENSE file.

import 'dart:io';
import 'dart:isolate';

class Workspace {
final String name;

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

Workspace(this.name) {
if (directory.existsSync()) directory.deleteSync(recursive: true);
Expand Down

0 comments on commit 9c1a4f3

Please sign in to comment.