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

Starter kit fails to extract #118

Open neclimdul opened 6 years ago

neclimdul commented 6 years ago

Error:

$ php core/console --starterkit --suggestions
configuring pattern lab...

suggested starterkits that work with this edition:

  1: pattern-lab/starterkit-twig-demo
  2: pattern-lab/starterkit-twig-drupal-minimal
  3: aleksip/starterkit-shila-drupal-theme
  4: forumone/starterkit-twig-drupal-gesso

choose an option or hit return to cancel: (ex. 1) > 3

downloading the starterkit. this may take a few minutes...
finished downloading the starterkit...
failed to extract the starterkit. easiest solution is to manually download it and copy <path>./dist</path to ./source/...

Editing Fetch.php to not swallow up the error, the actual error is that pattern-lab seems to pass an illegal combination of arguments to tar.

Unable to execute the following command '/bin/tar' '--extract' '--file=/tmp/pl-sk/pl-sk-archive.tar.gzUDLl04' '--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.
}
neclimdul commented 6 years ago

some other things that might be useful:

$ tar --version
tar (GNU tar) 1.29
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
$ cat /etc/issue
Ubuntu 17.04 \n \l
neclimdul commented 6 years ago

looks like this is the fix https://github.com/alchemy-fr/Zippy/commit/fceaa042ddc1b8b2bed4a68e5bc1e5594cd990cc. need to unlock zippy from ^0.3 so the 0.4 branch with the fix can be used. Don't know what the impact of that is though.

neclimdul commented 6 years ago

this is still broken. Can we reopen #121?

neclimdul commented 6 years ago

@EvanLovely since you closed the merge request before, is there a way to push this forward. Best I can tell patternlab is totally unusable in Linux ATM.