-
Notifications
You must be signed in to change notification settings - Fork 41
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
Composer mirrors are not used on patch install like private packagist #91
Comments
Did you download and have these files present in your setup? So your system will be like
Maybe its thinking they're meant to be remote patches if they do not exist for you locally. |
You don't have to. The download happens before the patch file check. This is also confirmed by #71 And a completely different error would then be thrown: |
If you have not manually downloaded the patches and created them in those file paths I do not know where your system would get the patch files, you asked for the different config I had this would be the first one to try out. |
Like I wrote before, I checked both cases. It doesn't matter if the patch files are available or not, because the download happens before applying the patch. Maybe you can check |
I've never had repo.magento.com credentials on this machine. I couldn't be talking to repo.magento.com if I tried :/ |
Alright, could you please check the
Those are the only two things I could imagine happening here. If that's not the case either, I have to wait for official staff to check on this issue. 😁 |
@Morgy93 that's how it should look yes. |
@Morgy93 perhaps you can look also at your Sadly I don't have a Private Packagist to test with, but in my initial testing (manually modifying composer.lock and installed.json), I can repeat your case if ... |
I think we can take a shortcut here. I'll close this for now and will report back if I encounter any errors. Thanks very much for the help so far! |
Composer mirrors are not used on patch install like private packagist
To Reproduce
Steps to reproduce the behavior:
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition <install-directory-name>
| see: https://devdocs.magento.com/guides/v2.4/install-gde/composer.html#get-the-metapackage)composer.json
and editrepositories
to include your repo e.g.:composer update
to update repos forcomposer.lock
composer.json
again and add a patch e.g.:auth.json
. It should only include the repo.packagist.com credentials.composer clear-cache
so no cache is used for applying the patch. (Else it will work just fine because of the cached files from the download before)composer install
orcomposer patch:apply
Expected
It should apply the patch or at least download the package from the private packagist.
Actual
![image](https://user-images.githubusercontent.com/7961978/154712152-3399ba7e-f8a9-4731-b526-7abce29bdda2.png)
It tries to download the package from repo.magento.com (which it should not)
Notes
This is probably somewhat related / "caused" by #71
The text was updated successfully, but these errors were encountered: