Skip Menu |

This queue is for tickets about the Attribute-Params-Validate CPAN distribution.

Report information
The Basics
Id: 106729
Status: open
Priority: 0/
Queue: Attribute-Params-Validate

People
Owner: Nobody in particular
Requestors: DBOOK [...] cpan.org
Cc: KENTNL [...] cpan.org
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Fails to override version of Attribute::Params::Validate leftover from Params-Validate 1.20 or earlier
$ cpan-outdated --verbose Attribute::Params::Validate 1.20 1.21 D/DR/DROLSKY/Attribute-Params-Validate-1.21.tar.gz $ perl -MAttribute::Params::Validate -E'say $Attribute::Params::Validate::VERSION' 1.20 However Attribute::Params::Validate 1.21 is installed. The problem is that I had Params-Validate 1.20 installed, which installed to the *arch* directory, which comes before the non-arch directory in @INC. Attribute-Params-Validate 1.21 however installed Attribute::Params::Validate to the non-arch directory. So the old Attribute::Params::Validate in the arch directory is getting loaded first. The solution is to manually remove the old file but maybe there is an automatic way to fix this problem.

On 2015-08-29 11:13:33, DBOOK wrote:
> but maybe there is an automatic way to fix this problem.

HAARG++

https://metacpan.org/source/HAARG/Devel-GlobalDestruction-0.13/Makefile.PL#L75-88

This nukes old .pm's from the /arch/  dir of the install target.