Skip to content
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 2 support #50

Open
alxy opened this issue Dec 29, 2020 · 6 comments · May be fixed by #51
Open

Composer 2 support #50

alxy opened this issue Dec 29, 2020 · 6 comments · May be fixed by #51

Comments

@alxy
Copy link

alxy commented Dec 29, 2020

Hi,

the bootstrapper unfortunately does not work with Composer 2, as it tries to install the 1.0 branch of october, which isn't compatible with this version.

Are there any plans to upgrade? maybe it even makes sense to let users chose which branch to install?

@alxy
Copy link
Author

alxy commented Dec 30, 2020

Thinking about it, probably the most sensible solution would be to release a new major version (1.0.0) with support for a completely composer based installation.

I will try working on a PR.

@alxy alxy linked a pull request Dec 30, 2020 that will close this issue
@damsfx
Copy link
Contributor

damsfx commented Mar 23, 2021

I'm having some trouble with the wget https://getcomposer.org/composer.phar command which downloads the latest version of composer (v2) by default and give me an error when running Running composer update.
I have to modify my Envoy.blade.php files:

php ./vendor/bin/october install

add a line to force downgrade to v1

    php composer.phar install --no-interaction --no-dev --prefer-dist --ignore-platform-reqs
    php composer.phar self-update --1
    php ./vendor/bin/october install

php composer.phar self-update

        php composer.phar self-update --1

@tobias-kuendig
Copy link
Member

I'm having some trouble with the wget https://getcomposer.org/composer.phar command which downloads the latest version of composer (v2) by default and give me an error when running Running composer update.

You can use this instead:

[ ! -f composer.phar ] && (curl -sS https://getcomposer.org/installer | php)

@tobias-kuendig
Copy link
Member

This change is available as 0.9.3:

50a88a3

@damsfx
Copy link
Contributor

damsfx commented Mar 25, 2021

@tobias-kuendig ,

When using (curl -sS https://getcomposer.org/installer | php) :

[user@server]$ (curl -sS https://getcomposer.org/installer | php)
All settings correct for using Composer
Downloading...

Composer (version 2.0.11) successfully installed

Still installing v2 as it is the stable channel.
I have to trick a little your line:

[ ! -f composer.phar ] && (curl -sS https://getcomposer.org/installer | php -- --1)

Result :

[user@server]$ (curl -sS https://getcomposer.org/installer | php -- --1)
All settings correct for using Composer
Downloading...

Composer (version 1.10.20) successfully installed

@tobias-kuendig
Copy link
Member

Looks like they did change the installer script to use version 2 by default. Thanks for the heads up @damsfx, I did fix the template file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants