Closed alexjfisher closed 1 year ago
Found your post when searching for the same thing! 😆 I could ping you on Teams, but figured it might be useful for others...
The environment variable doesn't seem to work. Although you can set the URL within the composer.json file, like below:
"extra": {
"symfony": {
"allow-contrib": false,
"require": "5.4.*",
"endpoint": ["https://artifactory.example.com/artifactory/githubusercontent/symfony/recipes/flex/main/index.json"]
}
}
Ensure it's set as an array though, seems if it's just a string it doesn't work.
Doing a "composer update" no longer uses "raw.githubusercontent.com".
The SYMFONY_ENDPOINT
env variable indeed adds an endpoint in the list, it does not replace default endpoints entirely.
The same is true when specifying a string in the config.
This needs better documentation for sure. @stof is right. The way to completly ignore the default endpoints is to set the enpoint as an array in composer.json.
Up for a doc PR?
Hi
Is there anyway to prevent the
DEFAULT_ENDPOINTS
being tried in addition to the endpoint set with theSYMFONY_ENDPOINT
environment variable? This is causing issues as my environment is behind a firewall with no access to https://raw.githubusercontent.comI can proxy https://raw.githubusercontent.com via an Artifactory instance, but am running into issues with the downloader still trying to access github directly, (with each attempt timing out eventually)
Thanks!