ucan-lab / docker-laravel

🐳 Build a simple laravel development environment with Docker Compose.
https://dev.to/ucan_lab/how-to-install-and-set-up-laravel-s-local-development-environment-with-docker-compose-5bcf
MIT License
1.17k stars 380 forks source link

packages.json: URL using bad/illegal format or missing URL #253

Closed Ambroz91 closed 4 months ago

Ambroz91 commented 6 months ago

Hello. Trying to generate a new project, when using the command: docker compose exec app composer create-project --prefer-dist laravel/laravel . I've got this error: In CurlDownloader.php line 372: /packages.json: URL using bad/illegal format or missing URL obraz

Please help and thanks.

Ambroz91 commented 6 months ago

Hello. There is an error in the composer/config.json file where the url is invalid due to \r present in the link. Removing the characters makes that everything works.

{
    "config": {
        "process-timeout": 3600},
    "repositories": {
        "packagist": {
            "type": "composer",
            "url": "https://packagist.org\r"
        }
    }
}
ucan-lab commented 4 months ago

Currently Actions in laravel-create-project.yml workflow in main branch is successful.

https://github.com/ucan-lab/docker-laravel/actions/workflows/laravel-create-project.yml?query=branch%3Amain

I couldn't reproduce this error even in my local environment, so I'll close it. If you have any questions, please reopen and ask.