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

tar --force-local #597

Closed
wants to merge 1 commit into from
Closed

tar --force-local #597

wants to merge 1 commit into from

Conversation

sumkincpp
Copy link
Contributor

MSYS/MinGW windows tar is not able to pack files with absolute paths because of the essence of the colons(i.e. "C:\Code..."). Colons are treated by tar as links to remote machines. This is not the case of usage for sbt packager.

So, forcing local, from tar man page :

--force-local
    archive file is local even if it has a colon 

@muuki88 muuki88 added windows universal Zip, tar.gz, tgz and bash issues labels Jun 9, 2015
@muuki88
Copy link
Contributor

muuki88 commented Jun 9, 2015

@sumkincpp can you make sense of the error message? You can run the failing tests with

sbt "scripted universal/publish universal/test-packageName universal/test-zips-no-top-level-dir universal/test-zips"

@sumkincpp
Copy link
Contributor Author

@muuki88
Copy link
Contributor

muuki88 commented Jun 12, 2015

yep. Will you be able to fix these?

@sumkincpp
Copy link
Contributor Author

@muuki88 isn't --force-local an appropriate fix? Or should I write any tests?

@muuki88
Copy link
Contributor

muuki88 commented Jun 15, 2015

Your fix broke some tests. Point is: "why do the break?". I'm not sure why this is happening and how, but obviously this additional parameter breaks them. At least they all fail for the same reason:

[error] tar: Removing leading `/' from member names
[error] tar: /tmp/sbt_abeab32/simple-test-0.1.0.tar: Cannot stat: No such file or directory
[error] tar: Exiting with failure status due to previous errors

without having these fixed, I cannot merge this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
universal Zip, tar.gz, tgz and bash issues windows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants