-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Bug: Full path in symlink on windows #5225
Comments
cc @djdv |
@ivan386 |
On drive d: create 2 directory.
And make junction point to "test" as "symlink_to_test" When add it to ipfs
When i look in content of symlink block i see full path in it.
There must be relative path. And maybe in unix style. |
@ivan386
For me, the result:
Full wrapped hash: /ipfs/Qmes4dzy4aAH6HhiqTq1HaJkFLFVEDybCVZyQjEEaGFDuJ |
On Windows XP available only junction points. In both cases ipfs make symlink block. Difference only in path. Need to convert full path to relative when add junction point to ipfs. Full path is useless on gateway and on other file system. If on target system need full path than it can be build from relative. |
I would disagree with this. I've seen people using the SUBST command to map development directories as drive letters for consistent absolute paths, across machines/groups. In any case though, I don't think anything can be done about this in our mainline branch. In addition, the problems are that, we don't know when the user would want to force junctions to be treated as relative paths, and more importantly, XP users would not be able to unpack the created hashes, as junctions must be absolute. We'd not know which drive letter to use, or what type of links to use while unpacking, without adding flags to It should be possible, but I don't think we'll implement that in our branch, since it's a special case which modifies input and output data. The changes to tar-utils should make it easy for developers to add their own link handling method on Unofficially, you may be interested in this: |
Closing this as this is standard/intended behavior of NT "junctions", which are not semantically "symlinks". |
Version information:
go-ipfs version: 0.4.16-
Repo version: 7
System version: amd64/windows
Golang version: go1.10.2
Type: Bug
Description:
The text was updated successfully, but these errors were encountered: