Giter Site home page Giter Site logo

Comments (9)

VijitCoder avatar VijitCoder commented on August 9, 2024 1

I found it.

That's is my fault. I have an outdated Docker image with PHP 7.4 meanwhile another team mate already updated it up to v8.0 including composer.json. And in our config specified now:

"php": "^8.0"

That's why your package didn't want to setup. As a workaround, I changed in our composer.json:

"php": "^7.4|^8.0"

and it works.

Sorry for taking your time :)

from postgresql-for-doctrine.

martin-georgiev avatar martin-georgiev commented on August 9, 2024

Interesting. If I'm not mistaken, some years ago both | and || were acceptable. The single pipe in 1.5 release series is for sure a typo, yet Composer (even version 2) continues supporting it:

>> php -v
PHP 7.4.13 (cli) (built: Nov 30 2020 14:57:43) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.13, Copyright (c), by Zend Technologies

>> composer require martin-georgiev/postgresql-for-doctrine
Using version ^1.5 for martin-georgiev/postgresql-for-doctrine
./composer.json has been updated
Running composer update martin-georgiev/postgresql-for-doctrine
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals
  - Locking martin-georgiev/postgresql-for-doctrine (v1.5.1)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
  - Downloading martin-georgiev/postgresql-for-doctrine (v1.5.1)
  - Installing martin-georgiev/postgresql-for-doctrine (v1.5.1): Extracting archive
Generating autoload files

What is the full output of above commands for you?

from postgresql-for-doctrine.

VijitCoder avatar VijitCoder commented on August 9, 2024

Yeah, I know that should supports both variants. But it seems something has changed in composer )

What is the full output of above commands for you?

/usr/local/app $ php -v
PHP 7.4.12 (cli) (built: Nov  5 2020 20:50:00) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.12, Copyright (c), by Zend Technologies
    with Xdebug v2.9.8, Copyright (c) 2002-2020, by Derick Rethans

/usr/local/app $ composer require martin-georgiev/postgresql-for-doctrine
Using version ^1.5 for martin-georgiev/postgresql-for-doctrine
./composer.json has been updated
Running composer update martin-georgiev/postgresql-for-doctrine
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires php ^8.0 but your php version (7.4.12) does not satisfy that requirement.


Installation failed, reverting ./composer.json and ./composer.lock to their original content.

/usr/local/app $ composer -V
Composer version 2.0.7 2020-11-13 17:31:06

from postgresql-for-doctrine.

VijitCoder avatar VijitCoder commented on August 9, 2024

I see your PR. It didn't help :(

I have no more ideas, what is wrong.

from postgresql-for-doctrine.

martin-georgiev avatar martin-georgiev commented on August 9, 2024

This doesn't make much sense :(
Can you try requiring specifically with version ^1.5.2?

from postgresql-for-doctrine.

VijitCoder avatar VijitCoder commented on August 9, 2024

No success, the same message:

/usr/local/app $ composer require martin-georgiev/postgresql-for-doctrine:^1.5.2
...
Your requirements could not be resolved to an installable set of packages.
    - Root composer.json requires php ^8.0 but your php version (7.4.12) does not satisfy that requirement.

from postgresql-for-doctrine.

VijitCoder avatar VijitCoder commented on August 9, 2024

What about you, can you test installation with PHP 7.4.x? Maybe in Docker, if you have updated already the host PHP version.

from postgresql-for-doctrine.

martin-georgiev avatar martin-georgiev commented on August 9, 2024

Yes, installation on 7.4 works both locally and on Travis for versions 7.2, 7.3, 7.4 and 8.0.

from postgresql-for-doctrine.

VijitCoder avatar VijitCoder commented on August 9, 2024

Hm.. Ok, thanks. I'll try to dig up the problem on my side.

from postgresql-for-doctrine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.