-
Notifications
You must be signed in to change notification settings - Fork 133
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 installs dev-master instead of the correct version #18
Comments
You're using This is not Docker problem. |
I'm sorry, but I will need a minimal composer.json that guarantees a reproducible scenario. Aside from that, are you using the platform configuration to define your target php version? The composer containers generally use the latest PHP version. If your target platform is 5.6.30, I encourage you to define this in your composer.json: "config": {
"platform": {
"php": "5.6.30"
}
} |
@alcohol maybe my composer.json is wrong, would ne nice if you could check that and let me know....
i removed the (hopefully) unimportant stuff because there are some private repos inside. |
Just add the |
See also https://getcomposer.org/doc/06-config.md#platform for more details. |
@alcohol thanks a lot, will test this ! |
Actually you need to merge it with your existing |
@alcohol not working, still installs
here´s the config part of my composer.json:
and i have to use |
I need a composer.json that lets me reproduce your scenario. Until I have that, I cannot help you any further. |
@alcohol heres a composer.json where you can reproduce it: {
"name": "xxxxxxxxx/xxxx",
"description": "test",
"config": {
"secure-http": false,
"platform": {
"php": "5.6.30"
}
},
"minimum-stability": "dev",
"require": {
"php" : ">=5.6",
"ext-json" : "*",
"ext-soap" : "*",
"ext-curl" : "*",
"ext-mysqli" : "*",
"laravie/parser": "~1.0"
}
}
and as you see, the illuminate packages get installed as |
That's because of |
@alcohol excuse me, but i think you are wrong and again: is use the same composer.json inside my php 5.6.30 docker and DO THE SAME:
so the docker-composer container AND my php-5.6.30 container us the same composer.json please explain me, why to i get even if the only thing that differs here, is that i am calling the docker-composer with |
I cannot tell, because one uses a reproducible composer.json and the other uses your private composer.json, which I do not have access to. |
@alcohol pardon, that makes absolutly no sense what you say. i posted my composer.json here 2 hours ago - how can you say you don´t have access to anything ??? i made my tests with exacat the same composer.json !! |
@crynobone i am forced to use
does install |
All of the following behave as expected. With
Without
With
|
@alcohol if |
It's very difficult to understand why you are not seeing the same results. You do mention you are also using a custom container, but if the composer version inside of that is identical, and the composer.json is exactly as described here, then both containers should give you the same result (please make sure you are using a clean build context on each attempt though). |
@alcohol as explained, the differnece is that in my own container i don´t use |
@alcohol okay here is a detailed overview of different configs and what happens: version 1:
RESULT:
version 2:
RESULT:
version 3:
RESULT:
version 4:
RESULT:
version 5 = version 2 with
RESULT:
version 6 = version 4 with
RESULT:
so after this, it´s proven, that my problem is the "not understanding" how so end result: both docker versions work the same, the is no problem with docker, no problem with the container... if someone is able to explain me this |
if i understand the need to implement the key |
Hmm.. difficult to say. In a container, it is probably best to be installing based on locked versions in your .lock file anyway though, and not do a fresh install/update. |
I created an issue in the composer repo, I am curious, what they say... |
if someone want´s to learn from composer, follow the new issue ;) |
hi there,
today i noticed something very strange, and i don´t know if it's a problem on my side or a bug or whatever...
i tried to install this package:
(Composer version 1.4.2, latest docker image)
composer --ignore-platform-reqs require "laravie/parser=~1.0"
and this ends up with the following dependencies:
when i use the same docker version inside my php container (php 5.6.30) i get these dependencies installed:
and this is correct, so why does the docker version installes the
dev-master
versions instead of the correct versions ???thanks for any help !
The text was updated successfully, but these errors were encountered: