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

Valid package installation prevented #8033

Closed
bendavies opened this Issue Mar 11, 2019 · 3 comments

Comments

Projects
None yet
3 participants
@bendavies
Copy link

bendavies commented Mar 11, 2019

My Dockerfile:

FROM php:7.2.14

COPY --from=composer:1.8 /usr/bin/composer /usr/bin/composer

RUN composer init --quiet
ENTRYPOINT composer req  ocramius/doctrine-batch-utils:dev-master#97eebe837513b3014bb723237cd1e1bde8603364

Output of composer diagnose:

Checking composer.json: WARNING
No license specified, it is recommended to do so. For closed-source software you may use "proprietary" as license.
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com rate limit: OK
Checking disk free space: OK
Checking pubkeys: FAIL
Missing pubkey for tags verification
Missing pubkey for dev verification
Run composer self-update --update-keys to set them up
Checking composer version: OK
Composer version: 1.8.4
PHP version: 7.2.14
PHP binary path: /usr/local/bin/php
The command '/bin/sh -c composer diagnose' returned a non-zero code: 2

When I run this command:

composer req ocramius/doctrine-batch-utils:dev-master#97eebe837513b3014bb723237cd1e1bde8603364

I get the following output:

  [InvalidArgumentException]
  Package ocramius/doctrine-batch-utils at version dev-master#97eebe837513b3014bb723237cd1e1bde8603364 has a PHP requirement incompatible with your PHP version (7.2.14)

And I expected this to happen:
install ocramius/doctrine-batch-utils:dev-master#97eebe837513b3014bb723237cd1e1bde8603364 just fine.

commit hash 97eebe837513b3014bb723237cd1e1bde8603364 is used because it is the last commit in the project that allows php 7.2

@ciaranmcnulty

This comment has been minimized.

Copy link

ciaranmcnulty commented Mar 11, 2019

Worth mentioning that the latest dev-master commit requires PHP 7.3 so it seems like it's somehow falling back to that

@alcohol alcohol closed this Mar 15, 2019

@bendavies

This comment has been minimized.

Copy link
Author

bendavies commented Mar 15, 2019

oh, right 😞 .

thanks for the link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.