Hateburo: kazeburo hatenablog

SRE / 運用系小姑 / Goを書くPerl Monger

Plack < 1.0029 and http_proxy

Plack < 1.0029 failed test with $ENV{http_proxy}. That's fixed in 1.0029

$ no_proxy=www.cpan.org http_proxy=http://localhost:3941 cpanm --test-only MIYAGAWA/Plack-1.0028.tar.gz
--> Working on MIYAGAWA/Plack-1.0028.tar.gz
Fetching http://www.cpan.org/authors/id/M/MI/MIYAGAWA/Plack-1.0028.tar.gz ... OK
Configuring Plack-1.0028 ... OK
Building and testing Plack-1.0028 ... FAIL
! Testing MIYAGAWA/Plack-1.0028.tar.gz failed. See /path/to/.cpanm/work/1377503971.25614/build.log for details. Retry with --force to force install it.

$  no_proxy=www.cpan.org http_proxy=http://localhost:3941 cpanm --test-only MIYAGAWA/Plack-1.0029.tar.gz
--> Working on MIYAGAWA/Plack-1.0029.tar.gz
Fetching http://www.cpan.org/authors/id/M/MI/MIYAGAWA/Plack-1.0029.tar.gz ... OK
Configuring Plack-1.0029 ... OK
Building and testing Plack-1.0029 ... OK
Successfully tested Plack-1.0029

HTTP::Tiny which used Plack::LWPish use $ENV{http_proxy} if exists by default. LWP isn't use unless env_proxy().
To avoid this behaviors set no_proxy in Plack::LWPish.

https://github.com/plack/Plack/pull/423