Skip to content

Commit cacfdc4

Browse files
authored
Consistent pub / dart version (#217)
Closes #216
1 parent c0690c5 commit cacfdc4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

webdev/lib/src/serve/daemon_client.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ Future<BuildDaemonClient> connectClient(String workingDirectory,
1717
workingDirectory,
1818
// On Windows we need to call the snapshot directly otherwise
1919
// the process will start in a disjoint cmd without access to
20-
// STDIO.
21-
(Platform.isWindows ? [dartPath, pubSnapshot] : ['pub'])
20+
// STDIO. We also want to ensure the version of pub is consistent with
21+
// the SDK that was used to launch webdev.
22+
[dartPath, pubSnapshot]
2223
..addAll(['run', 'build_runner', 'daemon'])
2324
..addAll(options),
2425
logHandler: logHandler);

0 commit comments

Comments
 (0)