skaji/cpm

cpm install with private cpan basic auth fails in release 0.997003

srchulo opened this issue · 2 comments

I'm installing modules falling back to a private cpan. Here's the output from that step of my docker build:

> [ 5/13] RUN cpm install --resolver "02packages,https://user:password@darkpan.com/combined" --resolver metadb --resolver snapshot:                                  
#9 10.23 /bin/gzip -dc /root/.perl-cpm/sources/https%user%password%darkpan.com%combined/02packages.details.txt.gz:                                                    
#9 10.23 gzip: /root/.perl-cpm/sources/https%user%password%darkpan.com%combined/02packages.details.txt.gz: not in gzip format
------
executor failed running [/bin/sh -c cpm install --resolver "02packages,$DARKPAN_URL" --resolver metadb --resolver snapshot]: exit code: 25

I believe this release broke it:

0.997003  2021-02-24 01:30:51 JST
        - Use CPAN::02Packages::Search (#195)

When I use the previous release of cpm (0.997002), everything works correctly.

Sorry I can't provide a repro link-- that's my private cpan.

skaji commented

Do you use App::opan?

As described in #196, 02packages.details.txt.gz in opan is not gzipped file. So this is opan issue.

Try:

curl -fsSL -o 02packages.details.txt.gz 'https://user:password@darkpan.com/combined/modules/02packages.details.txt.gz'
gzip -d 02packages.details.txt.gz

Ah, I do. Sorry that I missed that! I guess App::opan will need to fix this.

Thanks!