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

not possible to specify a custom pakefile.php in random directory #37

Open
gggeek opened this issue Oct 25, 2013 · 5 comments
Open

not possible to specify a custom pakefile.php in random directory #37

gggeek opened this issue Oct 25, 2013 · 5 comments
Labels

Comments

@gggeek
Copy link
Collaborator

gggeek commented Oct 25, 2013

The code will only look for pakefile.php in current dir and parent dirs.
It is possible to pass a "pakefile" option, but if that pakefile is in an unrelated dir path, it will not be used.
(Note: tested on windows)

@indeyets
Copy link
Owner

I'm testing on OS X and everything looks fine. can you give me exact example?

test 1: looks ok

cd ..
./pake/bin/pake -f pake/pakefile.php -T

   # using local version of pake. good!
available pake tasks:
  …

test 2: looks ok

cd ../blog
../pake/bin/pake -f ../pake/pakefile.php -T
   # using local version of pake. good!
available pake tasks:
  …

@gggeek
Copy link
Collaborator Author

gggeek commented Oct 25, 2013

It seems that the way you specify the location for pakefile.php has an impact: if specified as relative to current dir is ok. If specified as absolute path, not so much.

d:\htdocs\pake_gg>cd ..\test

d:\htdocs\test>php ..\pake_gg\bin\pake -f ..\pake_gg\pakefile.php --tasks
   # using local version of pake. good!
available pake tasks:
  ...

d:\htdocs\test>php ..\pake_gg\bin\pake -f D:\htdocs\pake_gg\pakefile.php --tasks

  [pakeException]
  No pakefile found (looking for: D:\htdocs\pake_gg\pakefile.php)

d:\htdocs\test>php ..\pake_gg\bin\pake -f \htdocs\pake_gg\pakefile.php --tasks
   # oops窶ヲ you're using installed pake. restarting with local version窶ヲ

@indeyets
Copy link
Owner

thank you! I can't reproduce is on osx, but at least I know where to look

@indeyets
Copy link
Owner

@gggeek I just committed something which might be a fix. can you check git-master please?

@indeyets
Copy link
Owner

@gggeek ping? does it work for you now?

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

No branches or pull requests

2 participants