Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Check to prevent Perl version mismatch in reports #25
Added a version check to prevent the submission of a report where the Perl version provided by the build.log entry does not match the Perl version which is being used to generate the report. The goal of this is to reduce invalid reports that can easily occur while using a more advanced Perl deployment scheme such as PerlBrew or plenv. I've also added a command line parameter to bypass this check has been added. Tests have been added and updated as needed.
Unfortunately, I had to modify most of the existing tests to pass in the --ignore-version flag since the versions in the test build.log files would almost never match the current Perl version. I considered updating the tests to create their data files on demand but decided the more minimal modifications were best for now.
This may be a solution for CPAN RT bug 102995 https://rt.cpan.org/Public/Bug/Display.html?id=102995 . However, it is unclear to me if that bug is implying a deeper issue in version detection in the case of PerlBrew/plenv.