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

tutorial/erl/*.sh: change the order of symlinks #1561

Merged

Conversation

emmenlau
Copy link
Member

@emmenlau emmenlau commented Jun 6, 2018

Currently, tutorial/erl/client.sh is a symlink to tutorial/erl/server.sh. During extraction of a thrift archive on Windows, this creates temporarily a dangling symlink, because client.sh is extracted before server.sh, and points to a (then) non-existing file. This breaks tar on Windows:

tar: tutorial/erl/client.sh: Cannot create symlink to ‘server.sh’: No such file or directory
tar: Exiting with failure status due to previous errors

A simple workaround is to change the order of symlinks in thrift. The archive typically has the files in alphabetical order, so the target will exist when the symlink is extracted.

…oid dangling symlink on Windows (breaks gnu tar)
@jeking3
Copy link
Contributor

jeking3 commented Jun 7, 2018

THRIFT-4580

@jeking3 jeking3 merged commit 4d10279 into apache:master Jun 7, 2018
djzort pushed a commit to djzort/thrift that referenced this pull request Oct 15, 2018
djzort pushed a commit to djzort/thrift that referenced this pull request Oct 15, 2018
@emmenlau emmenlau deleted the emmenlau_fix_windows_tar_extraction branch November 19, 2020 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants