Skip Menu |

This queue is for tickets about the Test-Dir CPAN distribution.

Report information
The Basics
Id: 121007
Status: resolved
Priority: 0/
Queue: Test-Dir

People
Owner: Nobody in particular
Requestors: ppisar [...] redhat.com
Cc:
AdminCc:

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



Subject: Bad VERSION declaration in Test::Dir
Test-Dir-1.15 changed $Test::Dir::VERSION declaration from "our" to "my" and that causes the variable being unavailable from code the imports it: $ perl -Ilib -e 'use Test::Dir 1.006;' Test::Dir does not define $Test::Dir::VERSION--version check failed at -e line 1. BEGIN failed--compilation aborted at -e line 1. This causes test failures in Test-Apocalypse-1.006.
From: ppisar [...] redhat.com
Dne Pá 07.dub.2017 07:54:08, ppisar napsal(a): Show quoted text
> Test-Dir-1.15 changed $Test::Dir::VERSION declaration from "our" to > "my" and that causes the variable being unavailable from code the > imports it: >
A fix is attached.
Subject: Test-Dir-1.15-Fix-Test-Dir-VERSION-declaration.patch
From ab9ccb5a7669ee4da016626c8b7854db5c5b8095 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com> Date: Fri, 7 Apr 2017 13:55:20 +0200 Subject: [PATCH] Fix $Test::Dir::VERSION declaration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "my" variables are not visible from importing code: $ perl -Ilib -e 'use Test::Dir 1.006;' Test::Dir does not define $Test::Dir::VERSION--version check failed at -e line 1. This patch fixes it. CPAN RT#121007 Signed-off-by: Petr Písař <ppisar@redhat.com> --- lib/Test/Dir.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Test/Dir.pm b/lib/Test/Dir.pm index 3970840..e7cc8cd 100644 --- a/lib/Test/Dir.pm +++ b/lib/Test/Dir.pm @@ -4,7 +4,7 @@ package Test::Dir; use strict; use warnings; -my +our $VERSION = 1.15; use base qw( Exporter Test::Dir::Base ); -- 2.7.4
fixed in 1.16