-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Print file paths instead of file:// URLs. #5994
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
Conversation
This change ensures cargo will output file paths in the expected format (C:\foo\... on Windows, /foo/... elsewhere). Previously it would output file:// URLs instead. To support this change, additional changes were made to the test suite string processing such that [ROOT] is now replaced with the appropriate file path root for the platform. The CWD template was also updated to use [CWD] like other replacement templates and to do the replacement on the expected value rather than the actual value to avoid replacing things we don't expect with CWD.
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @matklad (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
Test failures were due to overzealous replacement of file:// for git repositories. Strange that it didn't fail on Windows... |
Though I guess that is a question worth asking: I made the decision that git paths should still be file:// URIs, because I think people expect git paths to be URIs, and we tack extra junk on to the end of them that would make it weird as a file path anyway. So please let me know if that seems wrong. Looks like things fail on my Mac, so I can use that to track down the issues. |
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.
LGTM
Thank you, @zachlute! |
📌 Commit a5a95fe65d4d3c207c31b48b1525d3d0f47c5813 has been approved by |
🔒 Merge conflict This pull request and the master branch diverged in a way that cannot be automatically merged. Please rebase on top of the latest master branch, and let the reviewer approve again. How do I rebase?Assuming
You may also read Git Rebasing to Resolve Conflicts by Drew Blessing for a short tutorial. Please avoid the "Resolve conflicts" button on GitHub. It uses Sometimes step 4 will complete without asking for resolution. This is usually due to difference between how Error message
|
☔ The latest upstream changes (presumably #5990) made this pull request unmergeable. Please resolve the merge conflicts. |
a5a95fe
to
730d07c
Compare
@alexcrichton This one should be good to go again if anybody wants to get this on the path to integration before somebody changes all the same strings I did again. :) |
@bors: r+ Of course! |
📌 Commit 730d07c has been approved by |
⌛ Testing commit 730d07c with merge 43d6198f984f1128bb3b493a08edd2f88f0c81ec... |
Sorry for the clash. |
💥 Test timed out |
Oh no, what does that mean? There doesn't seem to be any way to view a log or anything to know what it was doing. |
@bors: retry ah we just gotta try again |
⌛ Testing commit 730d07c with merge 32d73f85305ef4681b0dd24beda42263713cd8b0... |
💥 Test timed out |
@bors: retry ... |
⌛ Testing commit 730d07c with merge 943eedbb3d19bf781270dea00cc090871cfd0617... |
💥 Test timed out |
@bors: retry |
Print file paths instead of file:// URLs. Fixes #4661. This change ensures cargo will output file paths in the expected format (C:\foo\... on Windows, /foo/... elsewhere). Previously it would output file:// URLs instead. To support this change, additional changes were made to the test suite string processing such that [ROOT] is now replaced with the appropriate file path root for the platform. The CWD template was also updated to use [CWD] like other replacement templates and to do the replacement on the expected value rather than the actual value to avoid replacing things we don't expect with CWD.
☀️ Test successful - status-appveyor, status-travis |
Woohoo! |
Fixes #4661.
This change ensures cargo will output file paths in the expected format
(C:\foo... on Windows, /foo/... elsewhere). Previously it would output
file:// URLs instead.
To support this change, additional changes were made to the test suite
string processing such that [ROOT] is now replaced with the appropriate
file path root for the platform.
The CWD template was also updated to use [CWD] like other replacement
templates and to do the replacement on the expected value rather than
the actual value to avoid replacing things we don't expect with CWD.