Comments (17)
@samsonasik First, thanks for trying! However, it's not quite ready yet!
Second, what shell are you using? I tested in bash and zsh, and those options are standard under those shells. I'm curious what shells might have issues, so I can add that information to the README file.
from component-split.
@weierophinney I was using terminal in mac version 2.4 (326)
from component-split.
@samsonasik Right, but what shell environment is the default in the Mac terminal? possibilities are ash, csh, tcsh, zsh, bash, ksh, …
from component-split.
it seems i am using bash :
$ echo $SHELL
/bin/bash
from component-split.
Interesting, and frustrating; I've not run across a bash or zsh that didn't have that flag as part of the readlink()
implementation. I'll see if I can find another option for that tomorrow.
from component-split.
@samsonasik Can you try changing the -f
switches to either -e
or -m
in your local checkout, and see if either runs? They all do essentially the same thing, with subtle differences in behavior around symlinks (which we're not worried about here). If one works, let me know which one.
from component-split.
thank you ;)
from component-split.
@weierophinney how to change that ?
from component-split.
I have tried :
$ #!/bin/bash -xm
$ ./bin/split-component.sh -c Authentication -t TestConfiguration.php.dist -i TestConfiguration.php.travis 2>&1 | tee -a split.log
ZF2 Component Split Tool, v0.1.0
Splitting component Authentication
Using:
PHP: /usr/local/php5/bin/php
ZF2 path: zf2-migrate
TestConfiguration.php.dist: readlink: illegal option -- f
usage: readlink [-n] [file ...]
TestConfiguration.php.travis: readlink: illegal option -- f
usage: readlink [-n] [file ...]
readlink: illegal option -- f
usage: readlink [-n] [file ...]
Cloning into 'zf2-migrate'...
readlink: illegal option -- f
usage: readlink [-n] [file ...]
Invalid component name 'Authentication'!
any something i missed?
from component-split.
I even try change the code inside bin/split-component.sh
with -m and -e and got :
readlink: illegal option -- e
from component-split.
@samsonasik I think you'll need to do this in a vagrant box running a linux OS such as ubuntu, fedora, etc. That functionality is used to ensure we have fully qualified paths for tools, utilities, assets, etc. before we descend into the cloned repository. The flags I'm using are standard for modern readlink
variants, and I'm having trouble finding any other cross-platform way of doing that that is reliable.
from component-split.
@weierophinney i am trying in vagrant, seems it works now, on cloning process now :
$ ./bin/split-component.sh \
> -c Authentication \
> -t TestConfiguration.php.dist \
> -i TestConfiguration.php.travis 2>&1 | tee -a split.log
ZF2 Component Split Tool, v0.1.0
Splitting component Authentication
Using:
PHP:
ZF2 path: zf2-migrate
TestConfiguration.php.dist: /home/vagrant/component-split/TestConfiguration.php.dist
TestConfiguration.php.travis: /home/vagrant/component-split/TestConfiguration.php.travis
Cloning into 'zf2-migrate'...
from component-split.
Cool!
One note: I've already done the authentication component: https://github.com/weierophinney/zend-authentication ; try Stdlib or Mime.
Also, we'll start in earnest next week, after we've released 2.4.1. Right now, I'm doing a limited test with a few community members and my team to work out bugs in the process. Once we're ready to go, I'll be soliciting volunteers, and will have a sign up sheet for people to claim components.
from component-split.
Ok, I will try Stdlib. Thanks ;)
from component-split.
seems it on process now, but i got following error :
Rewrite 9bbfe6a2bd7997bf5ca62497180d4f7d022757a6 (1/13544)/usr/lib/git-core/git-filter-branch: 2: eval: /home/vagrant/component-split/bin/tree-filter.php: Permission denied
tree filter failed:
/home/vagrant/component-split/bin/tree-filter.php Stdlib /home/vagrant/component-split '(none)' '(none)' '(none)' /home/vagrant/component-split/TestConfiguration.php.dist /home/vagrant/component-split/TestConfiguration.php.travis '(none)'
Deleted tag 'last-docs-commit' (was b0b7b93)
Deleted tag 'release-2.0.0dev1' (was a3eb9b1)
Deleted tag 'release-2.0.0dev2' (was 795dc48)
should i stop and make tree-filter.php executable and re-execute?
from component-split.
It seems it's not finding your php executable; you may need to pass the path to it (look in bin/split-component.sh -h
to see what switch to use for that). If you don't have PHP installed on the VM, install it. :)
from component-split.
yes, it seems ok now ;)
from component-split.
Related Issues (11)
- error : PHP Warning: copy(/home/vagrant/component-split/TestConfiguration.php.travis): failed to open stream: HOT 4
- composer install on splitted "Stdlib" error HOT 2
- [Split] PHP CS Fixer HOT 7
- How about zendframework/zend-resources HOT 5
- Split testing HOT 6
- Composer keywords array is duplicated
- Adopt this way of turn on/off checks on Travis-CI HOT 1
- zend-* version in composer.json's require and require-dev HOT 1
- History is duplicated master branch and tags have duplicated commits HOT 7
- Things to do before 2.5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from component-split.