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

theme:package doesn't work on Windows because of tar #83

Open
mgsmus opened this issue Jan 16, 2018 · 0 comments
Open

theme:package doesn't work on Windows because of tar #83

mgsmus opened this issue Jan 16, 2018 · 0 comments

Comments

@mgsmus
Copy link

mgsmus commented Jan 16, 2018

tar (child): Cannot connect to C: resolve failed
tar: Child returned status 128
tar: Error is not recoverable: exiting now
Package created at [C:\xampp71\htdocs\themetest\storage\themes/dream.theme.tar.gz]

The reason is that tar interprets colons (:) in file names as meaning it is a file on another machine. You can disable this behavior by using the flag --force-local
https://stackoverflow.com/a/37996249

system("cd {$this->tempPath} && tar -cvzf $packageFileName .");

I added --force-local parameter to tar command to solve the issue

system("cd {$this->tempPath} && tar --force-local -cvzf $packageFileName ."); 

but I don't know which one is good: adding --force-local or stripping colon from $packageFileName. I guess nobody uses another machine to create package right? So stripping seems like a good idea.

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

No branches or pull requests

1 participant