Giter Site home page Giter Site logo

Comments (13)

odino avatar odino commented on May 22, 2024

since this was integrated in migrations, I think you should stick to dev-master...anything we can help with?

from doctrinemigrationsbundle.

stof avatar stof commented on May 22, 2024

We should register the command only when the LatestCommand command is available. You can look at DoctrineBundle or DoctrinePHPCRBundle for such cases

from doctrinemigrationsbundle.

github-scott avatar github-scott commented on May 22, 2024

It is on dev-master although it broke when composer updated to bf9bcb3. Seems like I can get it working by adding "doctrine/migrations": "1.0.x-dev", to my composer file. I think the requirement should be updated to a version of doctrine/migrations which has the LatestCommand file or Stof's suggestion.

from doctrinemigrationsbundle.

stof avatar stof commented on May 22, 2024

@github-scott if you don't allow dev versions of doctrine/migrations in your project, there is strictly no change to get the latest dev version of the library, even if we change the requirement (you may get a "package not found" error)

from doctrinemigrationsbundle.

dincho avatar dincho commented on May 22, 2024

The same here. Because the bundle require "doctrine/migrations": "~1.0@dev", composer installs v1.0-ALPHA1 of doctrine/migrations, which is missing the LatestCommand

from doctrinemigrationsbundle.

stof avatar stof commented on May 22, 2024

do you have prefer-stable: true somewhere in your composer config ?

from doctrinemigrationsbundle.

github-scott avatar github-scott commented on May 22, 2024

I have "minimum-stability": "alpha" in the composer file so I assume this is causing the problem for me.

from doctrinemigrationsbundle.

stof avatar stof commented on May 22, 2024

well, as I said, you have to whitelist the dev version of doctrine/migrations for now.

from doctrinemigrationsbundle.

dincho avatar dincho commented on May 22, 2024

I've

    "minimum-stability": "dev",
    "prefer-stable": true,

Indeed adding "doctrine/migrations": "dev-master", explicitly works. However, it worked before without it. I don't know what should be the correct behaviour, but it's kinda strange a working composer config to brake at some point without changes.

from doctrinemigrationsbundle.

stof avatar stof commented on May 22, 2024

Well, the culprit is indeed "prefer-stable": true, as it will prefer the old alpha instead of the dev version.
The bundle should indeed be fixed (which is why the issue is not closed) but I wanted to understand why you got an old version

from doctrinemigrationsbundle.

Strate avatar Strate commented on May 22, 2024

Me also got an old version, same issue.

from doctrinemigrationsbundle.

mikeSimonson avatar mikeSimonson commented on May 22, 2024

Closing as it's old and probably fixed by that commit 0a3c377

from doctrinemigrationsbundle.

dincho avatar dincho commented on May 22, 2024

I can confirm that below config works:

    "minimum-stability": "dev",
    "prefer-stable": true,
    "require": {
        "doctrine/doctrine-migrations-bundle": "1.*",
    }

from doctrinemigrationsbundle.

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.