composer / satis

Simple static Composer repository generator - For a full private Composer repo use Private Packagist
MIT License
3.15k stars 519 forks source link

Satis bin is prompting for auth credentials when they are present in auth.json #553

Open wilkinsocks opened 5 years ago

wilkinsocks commented 5 years ago

Using the latest version from master, specifying vcs (git) over http, Satis is requesting the password when the credentials are present in auth.json in Composer's home.

Giving it the password, it succeeds but doesn't offer to install them in the auth.json file.

running -vvv is states to following 2 lines:

Loading config file /home/ubuntu/.composer/config.json
Loading config file /home/ubuntu/.composer/auth.json

Oddly, running composer exec satis build satis.json public it works fine, albeit there's not Stdout. Suggesting there's an issue with the way the satis binary is reading the auth file?

wilkinsocks commented 5 years ago

I've done some further investigation in a Docker container, and this breaks for me from commit 795e091: update composer.json and dependencies

elctoo commented 4 years ago

I can confirm that this is happening - I simply cannot get auth.json to work without using your work around. Thank you for that!

To get the satis output, use the "-v" param on composer. eg: composer -v exec satis build satis.json public

It's not in pretty colours, but at least it's possible to see what is going on.