pattern-lab / patternlab-php-core

This repository provides the core functionality for Pattern Lab. It is meant to be used from within an Edition with a PatternEngine and StarterKit.
http://patternlab.io/
MIT License
43 stars 62 forks source link

Zippy invocation broken on Linux / Debian 9.11 #174

Open interone-ms opened 4 years ago

interone-ms commented 4 years ago

The installer fails to extract the starterkit when running on Linux, tested on Debian 9.11.

Using a load of hacks in debugging I managed to expand the output from failed to extract the starterkit. easiest solution is to manually download it and copy <path>./dist</path to ./source/. to the real error message of Zippy:

Unable to execute the following command '/bin/tar' '--extract' '--file=/tmp/pl-sk/pl-sk-archive.tar.gzpfOkBu' '--overwrite-dir' '--overwrite' '--gzip' '--directory' '/tmp/pl-sk/pl-sk-archive' {output: /bin/tar: '--overwrite' cannot be used with '--overwrite-dir'
Try '/bin/tar --help' or '/bin/tar --usage' for more information.
}

I suggest replacing the Zippy invocation in core/src/PatternLab/Fetch.php with a plain old call to the tar binary. The starterkits are .tar.gz files anyway so there is no need at all for an abstraction library.

neclimdul commented 4 years ago

It's actually simpler then that and I made a PR #163. I'm just not sure this is still maintained because this fix has been hanging out for years now.