Giter VIP home page Giter VIP logo

Comments (15)

GuidoHendriks avatar GuidoHendriks commented on May 13, 2024

Doesn't happen for me. Tried both an existing project and a new project. For the existing project I did clear the cache, remove the composer.lock and deleted the vendor files. Get 3.0.10 for both the new and existing project.

from app.

markstory avatar markstory commented on May 13, 2024

What is your minimum-stability value?

from app.

davidyell avatar davidyell commented on May 13, 2024

For me, I have "minimum-stability": "dev"

from app.

GuidoHendriks avatar GuidoHendriks commented on May 13, 2024

@davidyell Could you possibly post your complete composer.json? My guess is still that there's something wrong in there, maybe in the require-dev which overrules the require?

from app.

davidyell avatar davidyell commented on May 13, 2024
    "require-dev": {
      "cakephp/cakephp-codesniffer": "~2.0",
      "cakephp/bake": "~1.0"
    },

So unless one of these has a dependancy of 3.1

from app.

ADmad avatar ADmad commented on May 13, 2024

(3.1.x-dev a87c87f)

a87c87f is not even current HEAD of 3.1 branch.

from app.

davidyell avatar davidyell commented on May 13, 2024

I've kinda sidestepped the issue by using 3.0.* in the project now, but I thought that it might affect others. I guess not πŸ˜•

from app.

dereuromark avatar dereuromark commented on May 13, 2024

With "minimum-stability": "dev" isnt that expected behavior? Removing that should only pull stable versions.

from app.

GuidoHendriks avatar GuidoHendriks commented on May 13, 2024

But "minimum-stability": "dev" is what you get by default if you create a new CakePHP project. And that definitely won't give you unstable branches by default.

from app.

GuidoHendriks avatar GuidoHendriks commented on May 13, 2024

Was looking at my composer.json again and spotted the "prefer-stable": true. Did you happen to change or got rid of this? When I change it to false, it does go to 3.1.x-dev c5990f9.

from app.

davidyell avatar davidyell commented on May 13, 2024

So make of this what you will.

https://github.com/cakephp/app/blob/master/composer.json#L38-L39

from app.

GuidoHendriks avatar GuidoHendriks commented on May 13, 2024

Can't really make anything of that, that just confirms everything I said. πŸ‘

from app.

dereuromark avatar dereuromark commented on May 13, 2024

We can then probably close this as we now know how to prevent 3.1 to be pulled :)

from app.

htstudios avatar htstudios commented on May 13, 2024

Reading compiser docs today, ~3.0 will get you ~3.x whereas ~3.0.0 wil get you 3.0.x - also ^3.0 should work getting you 3.0.x afair. For me those also get unstable versions btw.

from app.

markstory avatar markstory commented on May 13, 2024

@jhli You will get unstable versions with ~3.0 if you have the minimum-stability set to dev or beta.

from app.

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.