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
Requiring a private git Bitbucket repository fails to find valid composer.json #2418
Comments
Can you run it with -v? then it should say why the branches/tags were ignored, it should help debugging this. |
Ok I've discovered the issue, and it's a strange one. I had updated my windows registry to change directory and print out a message at command prompt startup. Running
It seems to be including that autorun message in the stream.. I've removed the registry entry and it seems to be working now. I'm not sure if this can be considered a bug as it's quite a weird case. EDIT: I just want to add that any registry entry (not just an echo) will cause the error I noted in the first comment. For example I have an entry that runs |
Yeah it's not really a composer issue it's just the way windows cmd works, if you have any autorun entry it messes things up for php run processes or at least the way we run them they go through a shell and that stuff gets executed. Autorun entries should really be silent. |
I know this is a bit old, but for some that might encounter this issue, this is how it works for me. Clear the composer cache.
Rerun the satis build script. |
@aldee07 it doesnt work for me any otheridea? can you post your private package JSON file? |
@aldee07 |
'composer self-update' seems to have solved the problem for me. I did try 'composer clearcache' first, and also tried deleting C:\users\username\AppData\Local\Composer*. The suggestions I found didn't seem to work for me, but updating my composer did. Best of luck to you all! |
I'm trying to reference a private git repository from Bitbucket in my project's composer.json:
The remote repository has the following composer.json:
I'm receiving the following error:
Is this expected behavior? My understanding is that I should just be able to reference a remote git repository and have composer install it with or without a remote composer.json.
The text was updated successfully, but these errors were encountered: