MyIntervals / PHP-CSS-Parser

A Parser for CSS Files written in PHP. Allows extraction of CSS files into a data structure, manipulation of said structure and output as (optimized) CSS

Home Page:http://www.sabberworm.com/blog/2010/6/10/php-css-parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't composer update on Linux Ubuntu corrupt error

Hugo-Trial opened this issue · comments

This works for me. Could you please try with these steps, @Hugo-Trial?

mkdir css-parser-test
cd css-parser-test
composer req sabberworm/php-css-parser:8.4.0

I'm using Composer 2.4.4 and Git 2.34.1 on Ubuntu 22.04.

Yes it works when I do so, thank you @oliverklee. It's probably a User access issue...
I've uploaded from another server the content of the /vendor folder and now I'm trying to update it using composer update.

I gave the /vendor folder ownership to the User running the composer update command, but it seems that it didn't solve the issue. Any idea on how to fix that?

No, sorry, no idea.

Closing as this seems to not be an issues caused by this package.

Usually, I recommend to not mix being the upload target for vendor/ and composer update: Either the machine should get the full folder vendor/ folder deployed (and does not change it after that), or all the composer install and composer update run on that machine.

In your case, probably deleting vendor and then running a composer install to install what is configured to be installed via composer.lock should work. And if composer install works, composer update most probably will so, too.

You're completely right @oliverklee. I was fairly new to devops when I did that :)
Thanks a lot for your time, sorry to have created an issue for the wrong reasons. Hopefully it will help someone through Google searches :)