-
Notifications
You must be signed in to change notification settings - Fork 51
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
GitLab CI pipeline broken (due to HTTPS by default?) #169
GitLab CI pipeline broken (due to HTTPS by default?) #169
Comments
I read the comment by user Ferki again and could now successfully reproduce the problem: This issue is when the LWP dist is already installed but LWP::Protocol::https is not. $ sudo docker run -it perl:5.40 bash
[sudo] password for daniel:
root@34eb7d01f637:/usr/src/app# cpanm LWP::UserAgent
--> Working on LWP::UserAgent
Fetching https://www.cpan.org/authors/id/O/OA/OALDERS/libwww-perl-6.77.tar.gz ... OK
Configuring libwww-perl-6.77 ... OK
==> Found dependencies: URI, HTTP::Response, HTTP::Cookies, LWP::MediaTypes, Encode::Locale, Try::Tiny, HTTP::Status, WWW::RobotRules, Test::RequiresInternet, HTML::Entities, HTTP::Request::Common, Test::Needs, HTTP::Request, HTTP::Daemon, Test::Fatal, HTTP::CookieJar::LWP, File::Listing, HTTP::Date, HTTP::Negotiate, HTML::HeadParser, URI::Escape, Net::HTTP
...
Building and testing libwww-perl-6.77 ... OK
Successfully installed libwww-perl-6.77
31 distributions installed
root@34eb7d01f637:/usr/src/app# cpanm local::lib
! Finding local::lib on cpanmetadb failed.
LWP will support https URLs if the LWP::Protocol::https module
is installed. Seems like a workaround could be to install LWP::Protocol::https with LWP in the first place. Both missing is fine, both installed is fine as well. I’d prefer not to handle this in my project though but have docker-perl fix this. Shouldn’t the patched |
Hi @dboehmer, thanks for the report! Yep, I think this is an oversight of the HTTPS patch - looking at the cpanm doc, we can plainly see why this happens:
Easiest solution for this is to turn off the patched Menlo::CLI::Compat |
For the meantime though, could you try calling |
I could successfully fix my pipeline by setting |
That's a perfect use of that variable 👍 I'll merge in #170 now and will get this on Docker Hub soon. Thanks again for the reports! 🙇 |
The GitLab CI pipeline of my project Coocook is now broken. After a hint by @ferki it looks like this is because this project adopting HTTPS by default (#164 #167).
The CI log: https://gitlab.com/coocook/coocook/-/jobs/7770418332
The bit with the error:
I tried to reproduce this in Docker locally but
cpanm
works like a charm:Notice that in GitLab CI I keep the CPAN dependencies in a cache. I suspect that some dependency causes the problem in CI because it is present or it is outdated. I might possibly fix the issue by clearing the cache but I want to fix the root cause and therefor don’t dare to touch the cache.
What exactly might be causing the issue? How to reproduce this locally? How to reliably fix this?
The text was updated successfully, but these errors were encountered: