Skip to content
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

ERROR: from shell.Get(): symlink not supported by windows #182

Open
ivan386 opened this issue Jul 13, 2018 · 4 comments
Open

ERROR: from shell.Get(): symlink not supported by windows #182

ivan386 opened this issue Jul 13, 2018 · 4 comments
Labels

Comments

@ivan386
Copy link

ivan386 commented Jul 13, 2018

I can't build ipfs with that.

..\github.com\ipfs\go-ipfs>gx install --global --nofancy
[get ] [fetch]   go-multihash                  QmPnFwZ2JXKnXgMw8CdBPxn7FWh6LLdjUjxV1fKHuJnkr8
ERROR: from shell.Get(): symlink ../bin \src\gx\ipfs\QmPnFwZ2JXKnXgMw8CdBPxn7FWh6LLdjUjxV1fKHuJnkr8.part\go-multihash\test\sharness\bin: not supported by windows
retrying fetch QmPnFwZ2JXKnXgMw8CdBPxn7FWh6LLdjUjxV1fKHuJnkr8 after a second...
ERROR: from shell.Get(): symlink ../bin \src\gx\ipfs\QmPnFwZ2JXKnXgMw8CdBPxn7FWh6LLdjUjxV1fKHuJnkr8.part\go-multihash\test\sharness\bin: not supported by windows
retrying fetch QmPnFwZ2JXKnXgMw8CdBPxn7FWh6LLdjUjxV1fKHuJnkr8 after a second...
ERROR: from shell.Get(): symlink ../bin \src\gx\ipfs\QmPnFwZ2JXKnXgMw8CdBPxn7FWh6LLdjUjxV1fKHuJnkr8.part\go-multihash\test\sharness\bin: not supported by windows
[err ] [fetch]   go-multihash                  QmPnFwZ2JXKnXgMw8CdBPxn7FWh6LLdjUjxV1fKHuJnkr8 symlink ../bin G:\Develop\go\src\gx\ipfs\QmPnFwZ2JXKnXgMw8CdBPxn7FWh6LLdjUjxV1fK
ERROR: install deps: failed to fetch dependencies
@Stebalien
Copy link
Collaborator

@djdv gx uses the API and then extracts the tar files itself. Do we need to register a path sanitizer?

@Stebalien Stebalien added the bug label Jul 13, 2018
@djdv
Copy link
Contributor

djdv commented Jul 13, 2018

@Stebalien
Yes, once ipfs/kubo#4956 is finalized/merged, I'll replicate the behaviour here: ipfs/go-ipfs-api#90
This still requires that users have symlink creation privileges though, or in Go 1.11 on Windows 10, enable "Developer Mode".

@djdv
Copy link
Contributor

djdv commented Jul 13, 2018

Actually
@ivan386

not supported by windows

This appears to be the error returned on Windows XP, which does not support symlinks officially. The proposed fix always tries to create links first, so if you can successfully create them (by using unofficial patches), it should work. However Go is explicitly inserting this error on the platform so it would have to be dealt with upstream in Go's os.Symlink.

@ivan386
Copy link
Author

ivan386 commented Jul 30, 2018

workaround

ipfs get -a QmPnFwZ2JXKnXgMw8CdBPxn7FWh6LLdjUjxV1fKHuJnkr8

Unpack tar to \src\gx\ipfs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants