Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • What are these indirect dependencies of which you speak?

    • Your module requires Foo, so you add Foo as a dependency, this is normal stuff. Foo requires Bar and Baz, which your module does not directly depend on. The suggestion therefore is to add Bar and Baz to your module's list of dependencies in it's META.yml file for example. That way when the automated CPAN tests are run, the version of Bar and Baz will be reported as well as Foo.

      In my case XML::RSS:Tools uses Test::Warn in some tests. Test::Warn uses Sub::Uplevel. The problem was that Test::Warn was not worki

      -- "It's not magic, it's work..."
      • Why does your distribution have to make up for someone else's broken distribution?

        Is there not already a test for PAUSE or CPANTS to test that a distribution is "broken" because it doesn't specify its dependencies?

        • by ajt (2546) on 2008.07.11 6:59 (#63873) Homepage Journal

          In theory that is the case. However in my case the two modules both passed all their tests and so were installed, it is only when used in a specific way in my tests that they failed. This shows up as a test failure in my module and nothing in the modules with a problem. The CPAN tester's report only details modules that are direct named dependencies, so it's hard to replicate the test scenario and hence debug it.

          While the quality of many modules on CPAN has improved and many people have striven to use only the best practices and have improved their test coverage, even the best have problems that don't get detected in their test suite.

          -- "It's not magic, it's work..."