-
Notifications
You must be signed in to change notification settings - Fork 829
file_util: fix broken symlink on Windows #8186
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
57632b6 to
6667f88
Compare
PhilipMetzger
left a comment
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.
LG, since its a Windows only fix
|
Directory separators in symlink content will have to be transformed back and forth by local working copy. See #6977 (comment) for the previous discussion. |
Then I have a question. What's the plan for handling absolute paths? |
What's different between relative and absolute paths? Absolute paths (and symlinks pointing to out of the tree) wouldn't work on different machines, but I don't think it's wrong to translate |
On Windows, absolute paths don't always start with a drive ID(e.g. However, given the Windows path name convention,
Partial conversion can be incorrect. For example, for let original = original
.as_ref()
.components()
.fold(std::path::PathBuf::new(), |res, component| {
res.join(component)
});
symlink_file(original, link)an incorrect symink to Footnotes
|
Yes, I meant textual conversion. We might have to fix |
9c77c29 to
dedf4bd
Compare
Done. Also added test to guard the usage of absolute symlinks on Windows which fails if we use |
yuja
left a comment
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.
Can you also update the changelog?
Thanks.
6b2c869 to
ff6d52f
Compare
2b81558 to
83392f5
Compare
83392f5 to
14e729c
Compare
... due to using incorrect separators. Fix jj-vcs#8185.
14e729c to
8906138
Compare
... due to using incorrect separators.
Fix #8185.
Checklist
If applicable:
CHANGELOG.mdREADME.md,docs/,demos/)cli/src/config-schema.json)