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

"Cannot write phar to ..." error #262

Closed
mpdude opened this issue Jun 2, 2020 · 1 comment
Closed

"Cannot write phar to ..." error #262

mpdude opened this issue Jun 2, 2020 · 1 comment

Comments

@mpdude
Copy link

mpdude commented Jun 2, 2020

I have a problem downloading humbug/box. I noticed it because a CI job that only runs every few months now fails.

$ cat phive.xml
<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
  <phar name="humbug/box" version="^3.8.4" installed="3.8.4" location="./tools/box" copy="false"/>
</phive>

To replicate the issue I have on CI, remove the cache dir:

$ rm -rf ~/.phive

Now run phive:

$ phive install --force-accept-unsigned
Phive 0.14.2 - Copyright (C) 2015-2020 by Arne Blankerts, Sebastian Heuer and Contributors
Downloading https://api.github.com/rate_limit
Downloading https://github.com/humbug/box/releases/download/3.8.4/box.phar
[ERROR]    Cannot write phar to /home/vagrant/.phive/phars/humbug

I can fix that by creating the directory myself:

$ mkdir -p /home/vagrant/.phive/phars/humbug
$ phive install --force-accept-unsigned
Phive 0.14.2 - Copyright (C) 2015-2020 by Arne Blankerts, Sebastian Heuer and Contributors
Downloading https://api.github.com/rate_limit
Downloading https://github.com/humbug/box/releases/download/3.8.4/box.phar
Linking /home/vagrant/.phive/phars/humbug/box-3.8.4.phar to /var/www/xx/tools/box
mpdude added a commit to webfactory/slimdump that referenced this issue Jun 2, 2020
@theseer
Copy link
Member

theseer commented Jun 2, 2020

Nice catch. That seems to be a perfect example of a regression for not having directories auto-created anymore ;)

Fix coming up.

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

No branches or pull requests

2 participants