{"action":"created","issue":{"url":"https://api.github.com/repos/miyagawa/Carmel/issues/27","repository_url":"https://api.github.com/repos/miyagawa/Carmel","labels_url":"https://api.github.com/repos/miyagawa/Carmel/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/miyagawa/Carmel/issues/27/comments","events_url":"https://api.github.com/repos/miyagawa/Carmel/issues/27/events","html_url":"https://github.com/miyagawa/Carmel/issues/27","id":159308185,"number":27,"title":"Cannot seem to install Carp::Clan if I use a private mirror","user":{"login":"TiMBuS","id":43602,"avatar_url":"https://avatars.githubusercontent.com/u/43602?v=3","gravatar_id":"","url":"https://api.github.com/users/TiMBuS","html_url":"https://github.com/TiMBuS","followers_url":"https://api.github.com/users/TiMBuS/followers","following_url":"https://api.github.com/users/TiMBuS/following{/other_user}","gists_url":"https://api.github.com/users/TiMBuS/gists{/gist_id}","starred_url":"https://api.github.com/users/TiMBuS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TiMBuS/subscriptions","organizations_url":"https://api.github.com/users/TiMBuS/orgs","repos_url":"https://api.github.com/users/TiMBuS/repos","events_url":"https://api.github.com/users/TiMBuS/events{/privacy}","received_events_url":"https://api.github.com/users/TiMBuS/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-09T00:52:32Z","updated_at":"2016-06-13T21:52:40Z","closed_at":null,"body":"Looks like Carmel can't install `Carp::Clan` when I have a custom mirror in my cpanfile. My mirror does have Carp::Clan, and it looks like it fails before even trying the backpan too..\r\n\r\nContents of my golfed-down cpanfile:\r\n```\r\nmirror 'https://super.secret.company.mirror';\r\nrequires 'Carp::Clan';\r\n```\r\nAnd the error:\r\n```\r\ncarmel install -v\r\n...\r\n---> Installing new dependencies: Carp::Clan\r\n--> Working on .\r\nConfiguring /home/me/project/ruby/test-app ... OK\r\n==> Found dependencies: Carp::Clan\r\n! Finding Carp::Clan (0) on mirror https://super.secret.company.mirror failed.\r\n! Couldn't find module or a distribution Carp::Clan\r\n! Installing the dependencies failed: Module 'Carp::Clan' is not installed\r\n! Bailing out the installation for ..\r\nCan't find an artifact for Carp::Clan => 0\r\n```\r\n\r\nIn an attempt to workaround, I have changed the usage of `Menlo::CLI::Compat->new(@etc)->run` to a plain `system('cpanm', @etc)` [in the install sub]( https://github.com/miyagawa/Carmel/blob/master/lib/Carmel/App.pm#L211) and it worked.\r\n\r\nSo I'm guessing Menlo::CLI::Compat is not handling the mirror correctly?\r\n\r\nExtra info:\r\n- All other packages install perfectly fine from my mirror.\r\n- BOTH my MiniCPAN and Pinto mirror don't work.\r\n- Carp::Clan is in the mirror packages list:\r\n  - `Carp::Clan                         6.04  S/ST/STBEY/Carp-Clan-6.04.tar.gz`\r\n- The error still occurs if it is a sub-dependency of a different package.\r\n- Here are my arguments being passed to menlo:\r\n```\r\n    [0]  \"--quiet\",\r\n    [1]  \"-M\",\r\n    [2]  \"https://super.secret.company.mirror\",\r\n    [3]  \"--notest\",\r\n    [4]  \"--save-dists\",\r\n    [5]  Path::Tiny  {  \"/home/me/.carmel/5.16.3-x86_64-linux-thread-multi/cache\" },\r\n    [6]  \"-L\",\r\n    [7]  Path::Tiny  { \"/home/me/.carmel/5.16.3-x86_64-linux-thread-multi/perl5\" },\r\n    [8]  \"--installdeps\",\r\n    [9]  \"--cpanfile\",\r\n    [10] Path::Tiny  { \"/tmp/7thTXcrfwR\" },\r\n    [11] \"--mirror-index\",\r\n    [12] Path::Tiny  { \"/tmp/TDmdjge8Wd\" },\r\n    [13] \"--cascade-search\",\r\n    [14] \"--mirror\",\r\n    [15] \"http://backpan.perl.org\",\r\n    [16] \".\"\r\n```\r\n\r\nHopefully this is enough information for you?"},"comment":{"url":"https://api.github.com/repos/miyagawa/Carmel/issues/comments/225720104","html_url":"https://github.com/miyagawa/Carmel/issues/27#issuecomment-225720104","issue_url":"https://api.github.com/repos/miyagawa/Carmel/issues/27","id":225720104,"user":{"login":"TiMBuS","id":43602,"avatar_url":"https://avatars.githubusercontent.com/u/43602?v=3","gravatar_id":"","url":"https://api.github.com/users/TiMBuS","html_url":"https://github.com/TiMBuS","followers_url":"https://api.github.com/users/TiMBuS/followers","following_url":"https://api.github.com/users/TiMBuS/following{/other_user}","gists_url":"https://api.github.com/users/TiMBuS/gists{/gist_id}","starred_url":"https://api.github.com/users/TiMBuS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TiMBuS/subscriptions","organizations_url":"https://api.github.com/users/TiMBuS/orgs","repos_url":"https://api.github.com/users/TiMBuS/repos","events_url":"https://api.github.com/users/TiMBuS/events{/privacy}","received_events_url":"https://api.github.com/users/TiMBuS/received_events","type":"User","site_admin":false},"created_at":"2016-06-13T21:52:40Z","updated_at":"2016-06-13T21:52:40Z","body":"Here ya go:\r\n\r\nEmpty dir, in your cpanfile:\r\n```\r\nmirror 'https://stratopan.com/Timbus/carmel-example/master';\r\nrequires 'Carp::Clan';\r\n```\r\ncarmel install will fail.\r\n\r\nGuess its the case-insensitive sorting."}}
{"actor":{"display_login":"TiMBuS"}}