# from Michael G Schwern # on Friday 29 February 2008 02:07: >> The Test::Run Build.PL contains a 'dist_version_from' key. >> Furthermore, 0.0114 received 23 passes, so it should work: >> >> http://cpantesters.perl.org/show/Test-Run.html#Test-Run-0.0114 >> >> So Something seems wrong with your system's configuration. > >I'm using Module::Build from SVN. r10222 made a change which makes >dist_version_from only honor the $VERSION from module_name, if it's > set. So it's ignoring $Test::Run::Core::VERSION. > >It's not really clear why that change was made. dist_version_from > should be independent of module_name. Eric, that was your change. > Comments?
So, uh... we have dist_version_from and module_name, but neither of those corresponds to the package which has the $VERSION we're looking for? Is that actually a valid use case? If so, we had zero test coverage for it. I see: ModuleInfo.pm has the comment 'punt', where it sets 'module' to the first package from the file. IMO that should have been die(). The point of passing the module iff it is defined was to allow for the script-only dist thing that I was working on (where I was getting blocked by the DWSM logic of "main:: overrides everything if not in a .pm"). I suppose that means my usage (if I can ever even get pause to play along) will just have to add to the baroqueness. --Eric -- Peer's Law: The solution to the problem changes the problem. --------------------------------------------------- http://scratchcomputing.com ---------------------------------------------------