Coder Social home page Coder Social logo

Comments (17)

weierophinney avatar weierophinney commented on June 26, 2024

@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.

samsonasik avatar samsonasik commented on June 26, 2024

@weierophinney I was using terminal in mac version 2.4 (326)

from component-split.

weierophinney avatar weierophinney commented on June 26, 2024

@samsonasik Right, but what shell environment is the default in the Mac terminal? possibilities are ash, csh, tcsh, zsh, bash, ksh, …

from component-split.

samsonasik avatar samsonasik commented on June 26, 2024

it seems i am using bash :

$ echo $SHELL
/bin/bash

from component-split.

weierophinney avatar weierophinney commented on June 26, 2024

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.

weierophinney avatar weierophinney commented on June 26, 2024

@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.

samsonasik avatar samsonasik commented on June 26, 2024

thank you ;)

from component-split.

samsonasik avatar samsonasik commented on June 26, 2024

@weierophinney how to change that ?

from component-split.

samsonasik avatar samsonasik commented on June 26, 2024

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.

samsonasik avatar samsonasik commented on June 26, 2024

I even try change the code inside bin/split-component.sh with -m and -e and got :

readlink: illegal option -- e

from component-split.

weierophinney avatar weierophinney commented on June 26, 2024

@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.

samsonasik avatar samsonasik commented on June 26, 2024

@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.

weierophinney avatar weierophinney commented on June 26, 2024

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.

samsonasik avatar samsonasik commented on June 26, 2024

Ok, I will try Stdlib. Thanks ;)

from component-split.

samsonasik avatar samsonasik commented on June 26, 2024

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.

weierophinney avatar weierophinney commented on June 26, 2024

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.

samsonasik avatar samsonasik commented on June 26, 2024

yes, it seems ok now ;)

from component-split.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.