{"action":"created","issue":{"url":"https://api.github.com/repos/perl-carton/carton/issues/211","repository_url":"https://api.github.com/repos/perl-carton/carton","labels_url":"https://api.github.com/repos/perl-carton/carton/issues/211/labels{/name}","comments_url":"https://api.github.com/repos/perl-carton/carton/issues/211/comments","events_url":"https://api.github.com/repos/perl-carton/carton/issues/211/events","html_url":"https://github.com/perl-carton/carton/issues/211","id":169626306,"number":211,"title":"Carton fails with mixed versions of ExtUtils::MakeMaker","user":{"login":"melo","id":485,"avatar_url":"https://avatars.githubusercontent.com/u/485?v=3","gravatar_id":"","url":"https://api.github.com/users/melo","html_url":"https://github.com/melo","followers_url":"https://api.github.com/users/melo/followers","following_url":"https://api.github.com/users/melo/following{/other_user}","gists_url":"https://api.github.com/users/melo/gists{/gist_id}","starred_url":"https://api.github.com/users/melo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/melo/subscriptions","organizations_url":"https://api.github.com/users/melo/orgs","repos_url":"https://api.github.com/users/melo/repos","events_url":"https://api.github.com/users/melo/events{/privacy}","received_events_url":"https://api.github.com/users/melo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-05T14:58:01Z","updated_at":"2016-08-05T15:10:12Z","closed_at":null,"body":"Note: This is not a Carton bug, but it can cause Carton failures. I'm not sure if there is anything we can do here though...\r\n\r\nIf the version of ExtUtils::MakeMaker on the workstation where `carton install` was run to generate the `cpanfile.snapshot` is more recent than the version on the server where `carton install --deployment` is run, Carton can fail with missing dependencies warnings.\r\n\r\nI got this problem with perl-5.20.3.\r\n\r\nTo reproduce:\r\n\r\n* install two copies of perl-5.20.3, called \"workstation\" and \"server\": if you have perlbrew, two lib's is enough;\r\n* on the \"workstation\" version, upgrade `ExtUtils::MakeMaker`: perl-5.20.3 uses 6.98, my updated version is 7.20;\r\n* use a `cpanfile` with a single line: `requires 'JSON::MaybeXS';`. This module includes a \"recommends\" section. You should be able to reproduce the issue with any module that has a \"recommends\" section;\r\n* generate the `cpanfile.snapshot` on the \"workstation\" perl;\r\n* run `carton install --deployment` on the \"server\" perl.\r\n\r\n---\r\n\r\nI'm not sure what `Carton` could do to \"solve\" this issue. I guess we could add a `ExtUtils::MakeMaker` dependency on `Carton` itself to force it to a more recent version, not sure if there is some other solution more correct.\r\n\r\nFor now, what I did was forcing the upgrade of `ExtUtils:MakeMaker` on all servers where I install `Carton`.\r\n"},"comment":{"url":"https://api.github.com/repos/perl-carton/carton/issues/comments/237876421","html_url":"https://github.com/perl-carton/carton/issues/211#issuecomment-237876421","issue_url":"https://api.github.com/repos/perl-carton/carton/issues/211","id":237876421,"user":{"login":"miyagawa","id":3499,"avatar_url":"https://avatars.githubusercontent.com/u/3499?v=3","gravatar_id":"","url":"https://api.github.com/users/miyagawa","html_url":"https://github.com/miyagawa","followers_url":"https://api.github.com/users/miyagawa/followers","following_url":"https://api.github.com/users/miyagawa/following{/other_user}","gists_url":"https://api.github.com/users/miyagawa/gists{/gist_id}","starred_url":"https://api.github.com/users/miyagawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miyagawa/subscriptions","organizations_url":"https://api.github.com/users/miyagawa/orgs","repos_url":"https://api.github.com/users/miyagawa/repos","events_url":"https://api.github.com/users/miyagawa/events{/privacy}","received_events_url":"https://api.github.com/users/miyagawa/received_events","type":"User","site_admin":false},"created_at":"2016-08-05T15:10:12Z","updated_at":"2016-08-05T15:10:12Z","body":"what is it that requires the new ExtUtils::MakeMaker? There was a problem in old version of Module::Install before, that it tries to require whatever you have in local.\r\n\r\n[Carmel](http://github.com/miyagawa/Carmel) doesn't have this kind of problem by the way."}}
{"actor":{"display_login":"miyagawa"}}