Skip to content

Commit bb44773

Browse files
committed
Fixes to run on Windows
1 parent bc64335 commit bb44773

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

webdev/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.1.3
2+
3+
- Now runs on Windows.
4+
15
## 0.1.2
26

37
- Remove check for `build_web_compilers`. Allows general support for

webdev/lib/src/pubspec.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class PackageExceptionDetails {
3838
}
3939

4040
Future _runPubDeps() async {
41-
var result = Process.runSync('pub', ['deps']);
41+
var result = Process.runSync('pub', ['deps'], runInShell: true);
4242

4343
if (result.exitCode == 65 || result.exitCode == 66) {
4444
throw new PackageException._(

webdev/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: webdev
2-
version: 0.1.3-dev
2+
version: 0.1.3
33
author: Dart Team <misc@dartlang.org>
44
homepage: https://github.com/dart-lang/webdev
55
description: >-

webdev/test/integration_test.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import 'package:test/test.dart';
1010
import 'package:test_descriptor/test_descriptor.dart' as d;
1111
import 'package:test_process/test_process.dart';
1212

13-
final _webdevBin = p.absolute('bin/webdev.dart');
13+
final _webdevBin = p.absolute(p.join('bin', 'webdev.dart'));
1414

1515
/// The path to the root directory of the SDK.
1616
final String _sdkDir = (() {
@@ -219,7 +219,9 @@ dependencies:
219219
test('should succeed with valid configuration', () async {
220220
var exampleDirectory = p.absolute(p.join(p.current, '..', 'example'));
221221
var process = await TestProcess.start(_pubPath, ['get'],
222-
workingDirectory: exampleDirectory, environment: _getPubEnvironment());
222+
workingDirectory: exampleDirectory,
223+
environment: _getPubEnvironment(),
224+
runInShell: true);
223225

224226
await process.shouldExit(0);
225227

0 commit comments

Comments
 (0)