-
Notifications
You must be signed in to change notification settings - Fork 36
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
Doesn't fail if dependency version can't be satisfied #245
Comments
Can you provide build.log? Especially, I want to know which resolver you use. |
This is part of our Gitlab CI pipeline, relevant lines:
CPAN_MIRROR is set as Gitlab CI variable to our darkpan URL. The cpanfile contained version 0.010000, but 0.009000 was installed without cpm aborting with a non-zero return code to end the CI pipeline step with an error. |
02packages resolver checks version constraints. Again, can you provide build.log? |
On a different note, I wouldn't recommend using cpm with xargs.
|
No, I can't provide the build.log from the run as Gitlab CI deletes the container after it finishes, I only have the log output where I extracted the relevant lines from. Our DarkPAN only has our dists, not a CPAN mirror. It uses Mojo::Darkpan if that matters. |
If you cannot provide build.log, |
I've tried to generate the build.log locally by requiring a newer version as exists on CPAN.
If I pipe that into cpm via xargs it of course can't know that I want a newer version 🤦🏻♂️ Using your suggestion to not use xargs wouldn't change anything as dzil still wouldn't output a version requirement. Do you have a suggestion how to call cpm to not lose the version requirements? |
Too soon! @skaji do you have a suggestion how to pass the dzil generated requirements with version numbers to cpm? Using the cpanfile isn't enough as dzil plugins add requirements, for example for generated tests. |
I found dzil's
|
Another finding, it works with xargs, fails with -:
|
The correct syntax is It seems xargs removes quotes. |
So dzil --cpan-versions returns the versions with double quotes and cpm expects them without? |
Yes. And cpanminus also expects |
I often release a new version to CPAN and require it in our DarkPAN code immediatly.
When not waiting long enough, even if the newest version is specified in cpanfile, cpm installs the previous one (current CPAN index) and doesn't fail with an error that it can't satisfy the requirements.
This leads to errors most at the time in the tests which are annoying and often hard to understand.
The text was updated successfully, but these errors were encountered: