runner-images icon indicating copy to clipboard operation
runner-images copied to clipboard

Add LWP::Protocol::https

Open JJ opened this issue 1 year ago • 4 comments

Tool name

LWP::Protocol::https

Tool license

Artistic

Add or update?

  • [x] Add
  • [ ] Update

Desired version

latest

Approximate size

No response

Brief description of tool

Runners already include LWP::Simple and LWP::UserAgent, Perl libraries that take care of making HTTP(S) requests. However, they need this separate library to actually make https requests.

URL for tool's homepage

https://metacpan.org/dist/LWP-Protocol-https

Provide a basic test case to validate the tool's functionality.

perl -MLWP::Simple -e 'getprint "https://jj.github.io/IV"'


### Platforms where you need the tool

- [X] Azure DevOps
- [X] GitHub Actions

### Runner images where you need the tool

- [X] Ubuntu 20.04
- [X] Ubuntu 22.04
- [X] Ubuntu 24.04
- [X] macOS 12
- [X] macOS 13
- [X] macOS 13 Arm64
- [X] macOS 14
- [X] macOS 14 Arm64
- [X] Windows Server 2019
- [X] Windows Server 2022

### Can this tool be installed during the build?

```bash
It can be installed in Ubuntu through its package https://launchpad.net/ubuntu/focal/+package/liblwp-protocol-https-perl

There are probably other ways of installing it in Windows/MacOS, but I really have no idea.

Tool installation time in runtime

16 seconds through apt

Are you willing to submit a PR?

Certainly.

JJ avatar Sep 08 '24 18:09 JJ

Hi @JJ Thank you for bringing this issue to us. We are looking into this issue and will update you on this issue after investigating.

hemanthmanga avatar Sep 09 '24 15:09 hemanthmanga

Hi @JJ Thank you for bringing this issue to us. We are looking into this issue and will update you on this issue after investigating.

As a matter of fact, I've looked up a list of Perl modules installed some time ago, and it was actually there; that should have been Ubuntu-18 or thereabouts.

JJ avatar Sep 09 '24 16:09 JJ

Hi @JJ, Do you still need this library. Also, it would be helpful if you can help us understand a bit more about the use case or this library.

As the runners seldom need to make outbound (http/https) requests to external systems. Thanks.

subir0071 avatar Dec 19 '24 21:12 subir0071

Certainly, as it was there in other versions. I use it to access APIs, or to scrape; in general, it gives support to LWP for the protocol that is used the most. Without it, the runner lacks this functionality and you need a lengthy installation process, a cache or a container

JJ avatar Dec 19 '24 21:12 JJ

We are checking this, internally. However, for Perl we are not updating/installing any package. It is all default that ships with Ubuntu Will keep you posted on the outcome.

subir0071 avatar Dec 23 '24 21:12 subir0071

Hi @JJ - As for Perl we are currently having the default Perl installation that comes with the base Ubuntu image. The package seems to have been removed from Ubuntu base package. Unfortunately, we are unable to accommodate this as of now as it would require to configure Perl package manager and other maintenance tasks. We will surely look into this in future. Thanks.

subir0071 avatar Dec 26 '24 17:12 subir0071