Subject: | MYMETA.json and git breaks tests |
ExtUtils::MakeMaker 6.58 will introduce a new MYMETA.json file. This is
causing t/03_no_index.t to fail because it scans its own source directory.
https://gist.github.com/895002
A solution is to add MYMETA.json to the list of ignores. If you really
want to future proof it, ignore MYMETA.* and META.*.
If you really, really want to future proof it, and make it more
convenient to develop, don't rely on the exact contents of your source
directory post-build. I also had to make it ignore a .git directory
(because I pulled the source from CPAN and checked it into git) and then
my patch file also caused the tests to fail.
Patch for ignoring git and MYMETA.json attached.
Subject: | 0001-Fix-the-test-for-ExtUtils-MakeMaker-and-also-being-i.patch |
From 17d36085f5776673e4100512159d3aa835bf559d Mon Sep 17 00:00:00 2001
From: Michael G. Schwern <schwern@pobox.com>
Date: Thu, 31 Mar 2011 09:57:53 +1100
Subject: [PATCH] Fix the test for ExtUtils::MakeMaker and also being in a git repository.
---
t/03_no_index.t | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/t/03_no_index.t b/t/03_no_index.t
index 1bef5c5..256ebc2 100644
--- a/t/03_no_index.t
+++ b/t/03_no_index.t
@@ -39,12 +39,15 @@ SCOPE: {
README
pm_to_blib
MYMETA.yml
+ MYMETA.json
};
my @files = sort grep {
! /^debian\b/
and
! /\.svn\b/
and
+ ! /\.git\b/
+ and
! /\.sw[op]\b/
and
! /\bblib\b/
--
1.7.4.1