Skip to content

Commit 19a3360

Browse files
letsarnatebosch
authored andcommitted
Fix pathToUrl on Windows (#302)
1 parent 8ddf7ee commit 19a3360

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.7.4+2
2+
3+
* Fix file URIs on windows.
4+
15
## 0.7.4+1
26

37
* Removed a `log.finest` with the output source of each generator. This allows

lib/src/library.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class LibraryReader {
133133
// a valid import URL in Dart source code.
134134
return new Uri(path: to.pathSegments.last);
135135
}
136-
final relative = Uri.parse(p.relative(
136+
final relative = p.toUri(p.relative(
137137
to.toString(),
138138
from: from.toString(),
139139
));

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: source_gen
2-
version: 0.7.4+1
2+
version: 0.7.4+2
33
author: Dart Team <[email protected]>
44
description: Automated source code generation for Dart.
55
homepage: https://github.com/dart-lang/source_gen

0 commit comments

Comments
 (0)