{"action":"created","issue":{"url":"https://api.github.com/repos/berkshelf/berkshelf/issues/1438","labels_url":"https://api.github.com/repos/berkshelf/berkshelf/issues/1438/labels{/name}","comments_url":"https://api.github.com/repos/berkshelf/berkshelf/issues/1438/comments","events_url":"https://api.github.com/repos/berkshelf/berkshelf/issues/1438/events","html_url":"https://github.com/berkshelf/berkshelf/issues/1438","id":90165720,"number":1438,"title":"\"berks install\" fetches from incorrect git source","user":{"login":"Poohblah","id":3742215,"avatar_url":"https://avatars.githubusercontent.com/u/3742215?v=3","gravatar_id":"","url":"https://api.github.com/users/Poohblah","html_url":"https://github.com/Poohblah","followers_url":"https://api.github.com/users/Poohblah/followers","following_url":"https://api.github.com/users/Poohblah/following{/other_user}","gists_url":"https://api.github.com/users/Poohblah/gists{/gist_id}","starred_url":"https://api.github.com/users/Poohblah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Poohblah/subscriptions","organizations_url":"https://api.github.com/users/Poohblah/orgs","repos_url":"https://api.github.com/users/Poohblah/repos","events_url":"https://api.github.com/users/Poohblah/events{/privacy}","received_events_url":"https://api.github.com/users/Poohblah/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-22T17:50:21Z","updated_at":"2015-06-22T17:53:24Z","closed_at":"2015-06-22T17:53:24Z","body":"I'm writing a cookbook (\"cub-sssd-ldap\") that depends on another cookbook (\"sssd_ldap\").  Currently, the dependency is not installed:\r\n\r\n```\r\n[birdsnest ~/pit/local/data/sis/git/cookbooks/cub-sssd-ldap](master|…)[I]% berks shelf list\r\nCookbooks in the Berkshelf shelf:\r\n  * ntp (1.4.0)\r\n```\r\n\r\nSo I try to install the dependency:\r\n\r\n```\r\n[birdsnest ~/pit/local/data/sis/git/cookbooks/cub-sssd-ldap](master|…)[I]% berks install\r\nResolving cookbook dependencies...\r\nFetching 'cub-sssd-ldap' from source at .\r\nFetching cookbook index from https://supermarket.chef.io...\r\nUsing cub-sssd-ldap (0.1.0) from source at .\r\nUsing sssd_ldap (1.0.3) from git@github.com:Poohblah/chef-sssd_ldap.git (at master)\r\n```\r\n\r\nHowever, the source that Berkshelf fetched (`git@github.com:Poohblah/chef-sssd_ldap.git`) was not the source that I configured (`git@github.com:CuBoulder/chef-sssd_ldap.git`):\r\n\r\n```\r\n[birdsnest ~/pit/local/data/sis/git/cookbooks/cub-sssd-ldap](master|…)[I]% cat Berksfile\r\ncat Berksfile\r\nsource 'https://supermarket.chef.io'\r\n\r\nmetadata\r\n\r\ncookbook 'sssd_ldap', git: 'git@github.com:CuBoulder/chef-sssd_ldap.git'\r\n[birdsnest ~/pit/local/data/sis/git/cookbooks/cub-sssd-ldap](master|…)[I]% cat metadata.rb \r\nname 'cub-sssd-ldap'\r\nmaintainer 'jay hendren'\r\nmaintainer_email 'jay.hendren@colorado.edu'\r\nlicense 'all_rights'\r\ndescription 'Installs/Configures cub-sssd-ldap'\r\nlong_description 'Installs/Configures cub-sssd-ldap'\r\nversion '0.1.0'\r\n\r\ndepends 'sssd_ldap'\r\n```\r\n\r\nI previously used `git@github.com:Poohblah/chef-sssd_ldap.git` as the upstream source, however, I forked this repository to `git@github.com:CuBoulder/chef-sssd_ldap.git` and I want to use the fork as the new source.  Why did Berkshelf still download from the old source?\r\n\r\n(this is probably an unrelated issue, but I don't see `sssd_ldap` when running `berks shelf list` after I ran `berks install`, event though the cookbook was placed in `~/.berkshelf`)\r\n```\r\n[birdsnest ~/pit/local/data/sis/git/cookbooks/cub-sssd-ldap](master|…)[I]% berks shelf list   \r\nCookbooks in the Berkshelf shelf:\r\n  * ntp (1.4.0)\r\n[birdsnest ~/pit/local/data/sis/git/cookbooks/cub-sssd-ldap](master|…)[I]% ls ~/.berkshelf/cookbooks\r\nntp-1.4.0/  sssd_ldap-89d1b59ffc4781d9fb334fd06c5faf17bd94ed2a/\r\n```\r\n\r\n```\r\n[birdsnest ~/pit/local/data/sis/git/cookbooks/cub-sssd-ldap](master|…)[I]% berks --version\r\n3.2.4\r\n```"},"comment":{"url":"https://api.github.com/repos/berkshelf/berkshelf/issues/comments/114198347","html_url":"https://github.com/berkshelf/berkshelf/issues/1438#issuecomment-114198347","issue_url":"https://api.github.com/repos/berkshelf/berkshelf/issues/1438","id":114198347,"user":{"login":"Poohblah","id":3742215,"avatar_url":"https://avatars.githubusercontent.com/u/3742215?v=3","gravatar_id":"","url":"https://api.github.com/users/Poohblah","html_url":"https://github.com/Poohblah","followers_url":"https://api.github.com/users/Poohblah/followers","following_url":"https://api.github.com/users/Poohblah/following{/other_user}","gists_url":"https://api.github.com/users/Poohblah/gists{/gist_id}","starred_url":"https://api.github.com/users/Poohblah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Poohblah/subscriptions","organizations_url":"https://api.github.com/users/Poohblah/orgs","repos_url":"https://api.github.com/users/Poohblah/repos","events_url":"https://api.github.com/users/Poohblah/events{/privacy}","received_events_url":"https://api.github.com/users/Poohblah/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T17:53:24Z","updated_at":"2015-06-22T17:53:24Z","body":"Nevermind. I figured it out:\r\n\r\n```\r\n[birdsnest ~/pit/local/data/sis/git/cookbooks/cub-sssd-ldap](master|…)[I]% rm Berksfile.lock \r\n[birdsnest ~/pit/local/data/sis/git/cookbooks/cub-sssd-ldap](master|…)[I]% berks install\r\nResolving cookbook dependencies...\r\nFetching 'cub-sssd-ldap' from source at .\r\nFetching 'sssd_ldap' from git@github.com:CuBoulder/chef-sssd_ldap.git (at master)\r\nFetching cookbook index from https://supermarket.chef.io...\r\nUsing sssd_ldap (1.0.3) from git@github.com:CuBoulder/chef-sssd_ldap.git (at master)\r\nUsing cub-sssd-ldap (0.1.0) from source at .\r\n```"}}