-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix normalized URI generation for UNC path #374
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1160,7 +1160,7 @@ object IO { | |
*/ | ||
def directoryURI(dir: File): URI = { | ||
assertAbsolute(dir) | ||
directoryURI(dir.toURI.normalize) | ||
directoryURI(dir.toPath.normalize.toUri) | ||
} | ||
|
||
/** | ||
|
@@ -1177,7 +1177,7 @@ object IO { | |
else | ||
new URI(str + "/") | ||
|
||
dirURI.normalize | ||
new File(dirURI).toPath.normalize.toUri | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The creation of the first URI object seems wasteful here. See also #132, which states that URI object can lead to hundreds of MB in heap. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shall investigate this once I regain access to a Windows Machine. Indeed there is something fishy there. If I now actually suspect the hidden issue might be with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Btw going slightly off topic but your blogpost about file URI schema is so helpful! Without it I probably need to spend a lot of time researching about file URI. |
||
} | ||
|
||
private[sbt] val isWindows: Boolean = | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we add unit test for this plz?