{"action":"opened","issue":{"url":"https://api.github.com/repos/theory/semver/issues/6","labels_url":"https://api.github.com/repos/theory/semver/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/theory/semver/issues/6/comments","events_url":"https://api.github.com/repos/theory/semver/issues/6/events","html_url":"https://github.com/theory/semver/issues/6","id":57015239,"number":6,"title":"Recommended Use breaks Module Build","user":{"login":"gh","id":15140,"avatar_url":"https://avatars.githubusercontent.com/u/15140?v=3","gravatar_id":"","url":"https://api.github.com/users/gh","html_url":"https://github.com/gh","followers_url":"https://api.github.com/users/gh/followers","following_url":"https://api.github.com/users/gh/following{/other_user}","gists_url":"https://api.github.com/users/gh/gists{/gist_id}","starred_url":"https://api.github.com/users/gh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gh/subscriptions","organizations_url":"https://api.github.com/users/gh/orgs","repos_url":"https://api.github.com/users/gh/repos","events_url":"https://api.github.com/users/gh/events{/privacy}","received_events_url":"https://api.github.com/users/gh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-09T10:52:37Z","updated_at":"2015-02-09T10:52:37Z","closed_at":null,"body":"I installed v0.6.0 from CPAN but the problem appears to be in Module::Build\r\n\r\nUpgrading Module::Build to the latest version did not help.  I have got \"use SemVer\" in my Build.PL\r\nfile which appears to fix everything except \"Build dist\".  No combination of Module::Build parameters in the Build.PL file seems to work.\r\n\r\nRunning ./Build dist results in:\r\n\r\n> BEGIN { q#  Hide from _packages_inside()\r\n>    #; package Module::Metadata::_version::p2;\r\n>    use version;\r\n>    no strict;\r\n>\r\n>    local $VERSION;\r\n>    $VERSION=undef;\r\n>      $vsub = sub {\r\n>        our $VERSION = SemVer->new('0.1.0');;\r\n>        $VERSION\r\n>      };\r\n>  }\r\n>\r\n> The fatal error was: Can't locate object method \"new\" via package \"SemVer\" (perhaps you forgot > to load \"SemVer\"?) at (eval 32) line 9, <GEN11> line 20.\r\n\r\n"}}