Error including "index.php" even when "web" is set to false. #39
Comments
Unfortunately, I am not able to reproduce the error:
I cloned it again from GitHub for good measure, but I still did not get that error message (although I did find a different one, not relevant to this issue). Would it be possible for you to send me the broken Box Phar you built? |
Here you go: http://laravel.com/box-2.0.0-rc.1-8-g77f3c19.phar |
It looks like the default PHP Phar stub is used, and not the one generated by Box. Could you please provide the following?
I am trying to figure out if you are using Box 1.0 to build Box 2.0, and if the "stub" setting in the configuration file is being respected. I am sort of stumped at the moment and am looking for clues. |
I'm getting a new error when building that I'm not sure is related to your latest commit or not. I pulled a fresh copy of the Box repo to build. Box Version:
Verbose Build:
|
Interesting to note that the "index.php" error is not happening on Mac, though I still get that So, it only appears to be happening on my Ubuntu 12.10 VM. |
Is the Mac the host? |
Yes, the Mac is the host. |
Unfortunately all I could setup was a Ubuntu VM with a Windows host. I was still not able to replicate the issue using a shared folder. If you clone and build Box using the VM's FS and not the shared folder, do you still get errors? |
Aha! Yes, I can build my project successfully outside of the shared directory. |
Could you please try using Box (current commit) on the project in the shared folder again? I added a check for read permission, thinking it might have something to do with that. Aside from that, I am not sure there is much more I can do, shared folders are a very special case. |
Sorry for the delay. Tried it and that didn't seem to make a difference. Honestly I don't particularly care anymore as I can just build outside of the shared folder, so I'll go ahead and close this. Thanks! |
I'm getting this same error. I'm on windows using the newest version of Box (Box version 2.1.0 build 963db3f) Here's my box.json, mostly copied from Box's box.json.dist:
But the start of the built .phar file still requests index.php and initializes webPhar: <?php
$web = 'index.php';
if (in_array('phar', stream_get_wrappers()) && class_exists('Phar', 0)) {
Phar::interceptFileFuncs();
set_include_path('phar://' . __FILE__ . PATH_SEPARATOR . get_include_path());
Phar::webPhar(null, $web);
include 'phar://' . __FILE__ . '/' . Extract_Phar::START;
return;
}
... |
Try adding the This will tell Box to generate its own stub, instead of using the default stub provided by |
Whoops, I just caught that. Thanks |
I'm on the latest build of Box 2.0. I tried basically started with the
box.json.dist
file that ships with Box when making my own box file, which looks like this:However, I am getting an error that the
index.php
doesn't exist when actually trying to run the generated Phar. So, I cloned down Box itself and ranbox build
and get the same error on a clean clone of Box:The text was updated successfully, but these errors were encountered: