Skip to content

Commit f2b740d

Browse files
committed
Merge branch 'hotfix/0.10.3'
2 parents f9a2faf + 1f9c779 commit f2b740d

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77
## [vNext]
88

9+
## [0.10.3] / 2018-10-05
10+
- Fixed `WinRelativePath` and `UnixRelativePath` to use correct separator
11+
912
## [0.10.2] / 2018-10-04
1013
- Fixed `RequirementService` to also support shorthand for properties
1114

@@ -164,7 +167,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
164167
- Added CLT tasks for Git
165168
- Fixed background color in console output
166169

167-
[vNext]: https://github.com/nuke-build/nuke/compare/0.10.2...HEAD
170+
[vNext]: https://github.com/nuke-build/nuke/compare/0.10.3...HEAD
171+
[0.10.3]: https://github.com/nuke-build/nuke/compare/0.10.2...0.10.3
168172
[0.10.2]: https://github.com/nuke-build/nuke/compare/0.10.1...0.10.2
169173
[0.10.1]: https://github.com/nuke-build/nuke/compare/0.10.0...0.10.1
170174
[0.10.0]: https://github.com/nuke-build/nuke/compare/0.9.1...0.10.0

source/Nuke.Common.Tests/PathConstructionTest.cs

+3
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ public void RelativePath_Specific()
197197
{
198198
((string) ((UnixRelativePath) "foo" / "bar")).Should().Be("foo/bar");
199199
((string) ((WinRelativePath) "foo" / "bar")).Should().Be("foo\\bar");
200+
201+
((string) (UnixRelativePath) "foo\\bar").Should().Be("foo/bar");
202+
((string) (WinRelativePath) "foo/bar").Should().Be("foo\\bar");
200203
}
201204

202205
private static string ParseRelativePath(object[] parts)

source/Nuke.Common/IO/PathConstruction.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ protected UnixRelativePath(string path, char? separator)
301301

302302
public static explicit operator UnixRelativePath([CanBeNull] string path)
303303
{
304-
return new UnixRelativePath(NormalizePath(path), UnixSeparator);
304+
return new UnixRelativePath(NormalizePath(path, UnixSeparator), UnixSeparator);
305305
}
306306
}
307307

@@ -314,7 +314,7 @@ protected WinRelativePath(string path, char? separator)
314314

315315
public static explicit operator WinRelativePath([CanBeNull] string path)
316316
{
317-
return new WinRelativePath(NormalizePath(path), WinSeparator);
317+
return new WinRelativePath(NormalizePath(path, WinSeparator), WinSeparator);
318318
}
319319
}
320320

0 commit comments

Comments
 (0)