Skip to content

Commit

Permalink
unset NO_COLOR env var when building.
Browse files Browse the repository at this point in the history
Setting NO_COLOR=1 would lead to test failures for a few modules in corelist.

This var changes the behaviour of Term::ANSIColor module in corelist
since version 5.01 and make it produce no colors code at all.

the "podlator" moduled included in perl dist contain tests that
verifies the existence of certain color codes and therefore would
break when NO_COLOR is set.

see also: #737
  • Loading branch information
gugod committed Mar 14, 2022
1 parent 4b06aa1 commit 0fbeec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/App/perlbrew.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1675,7 +1675,7 @@ INSTALL
$cmd = "($cmd) >> '$self->{log_file}' 2>&1 ";
}
delete $ENV{$_} for qw(PERL5LIB PERL5OPT AWKPATH);
delete $ENV{$_} for qw(PERL5LIB PERL5OPT AWKPATH NO_COLOR);
if ($self->do_system($cmd)) {
my $newperl = $self->root->perls ($installation_name)->perl;
Expand Down

0 comments on commit 0fbeec4

Please sign in to comment.