{"action":"created","issue":{"url":"https://api.github.com/repos/dkulchenko/bunch/issues/25","labels_url":"https://api.github.com/repos/dkulchenko/bunch/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/dkulchenko/bunch/issues/25/comments","events_url":"https://api.github.com/repos/dkulchenko/bunch/issues/25/events","html_url":"https://github.com/dkulchenko/bunch/issues/25","id":81110394,"number":25,"title":"Bunchfile.lock versions not being respected during rebuild","user":{"login":"tamird","id":1535036,"avatar_url":"https://avatars.githubusercontent.com/u/1535036?v=3","gravatar_id":"","url":"https://api.github.com/users/tamird","html_url":"https://github.com/tamird","followers_url":"https://api.github.com/users/tamird/followers","following_url":"https://api.github.com/users/tamird/following{/other_user}","gists_url":"https://api.github.com/users/tamird/gists{/gist_id}","starred_url":"https://api.github.com/users/tamird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tamird/subscriptions","organizations_url":"https://api.github.com/users/tamird/orgs","repos_url":"https://api.github.com/users/tamird/repos","events_url":"https://api.github.com/users/tamird/events{/privacy}","received_events_url":"https://api.github.com/users/tamird/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-05-26T19:53:17Z","updated_at":"2015-05-26T20:26:03Z","closed_at":"2015-05-26T20:03:18Z","body":"consider the following Bunchfile:\r\n```\r\ngithub.com/cockroachdb/cockroach-prod !self\r\ngithub.com/awslabs/aws-sdk-go/service/ec2\r\ngithub.com/awslabs/aws-sdk-go/service/elb\r\n```\r\nand the following Bunchfile.lock:\r\n```\r\n{\r\n    \"github.com/awslabs/aws-sdk-go/service/ec2\": \"deaa78b60cfd55045252c52f4f7840c6d697c491\",\r\n    \"github.com/awslabs/aws-sdk-go/service/elb\": \"deaa78b60cfd55045252c52f4f7840c6d697c491\"\r\n}\r\n```\r\nAlso consider:\r\n```\r\n$ pwd && git rev-parse head\r\n/Users/tamird/src/go/src/github.com/cockroachdb/cockroach-prod/.vendor/src/github.com/awslabs/aws-sdk-go\r\n29717a72a2fc649e790ce97dc2c4d96e32950844\r\n```\r\nIn other words, the checked-out ref on disk does not match the ref specified in Bunchfile.lock. Now, consider the output of various bunch commands:\r\n```\r\n$ bunch --verbose install\r\nskipping github.com/cockroachdb/cockroach-prod, up to date\r\nskipping github.com/awslabs/aws-sdk-go/service/ec2, up to date\r\nskipping github.com/awslabs/aws-sdk-go/service/elb, up to date\r\n$ bunch --verbose rebuild\r\ninstalling github.com/cockroachdb/cockroach-prod ...\r\nsuccessfully installed github.com/cockroachdb/cockroach-prod\r\n\r\ninstalling github.com/awslabs/aws-sdk-go/service/ec2 ...\r\n  - setting version of github.com/awslabs/aws-sdk-go/service/ec2 to  (resolved as master) ... done\r\n  - building package github.com/awslabs/aws-sdk-go/service/ec2 ... done\r\n  - installing package github.com/awslabs/aws-sdk-go/service/ec2 ... done\r\nsuccessfully installed github.com/awslabs/aws-sdk-go/service/ec2\r\n\r\ninstalling github.com/awslabs/aws-sdk-go/service/elb ...\r\n  - setting version of github.com/awslabs/aws-sdk-go/service/elb to  (resolved as master) ... done\r\n  - building package github.com/awslabs/aws-sdk-go/service/elb ... done\r\n  - installing package github.com/awslabs/aws-sdk-go/service/elb ... done\r\nsuccessfully installed github.com/awslabs/aws-sdk-go/service/elb\r\n```\r\n\r\nAm I doing something wrong? cc @MBerhault "},"comment":{"url":"https://api.github.com/repos/dkulchenko/bunch/issues/comments/105655212","html_url":"https://github.com/dkulchenko/bunch/issues/25#issuecomment-105655212","issue_url":"https://api.github.com/repos/dkulchenko/bunch/issues/25","id":105655212,"user":{"login":"dkulchenko","id":144206,"avatar_url":"https://avatars.githubusercontent.com/u/144206?v=3","gravatar_id":"","url":"https://api.github.com/users/dkulchenko","html_url":"https://github.com/dkulchenko","followers_url":"https://api.github.com/users/dkulchenko/followers","following_url":"https://api.github.com/users/dkulchenko/following{/other_user}","gists_url":"https://api.github.com/users/dkulchenko/gists{/gist_id}","starred_url":"https://api.github.com/users/dkulchenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkulchenko/subscriptions","organizations_url":"https://api.github.com/users/dkulchenko/orgs","repos_url":"https://api.github.com/users/dkulchenko/repos","events_url":"https://api.github.com/users/dkulchenko/events{/privacy}","received_events_url":"https://api.github.com/users/dkulchenko/received_events","type":"User","site_admin":false},"created_at":"2015-05-26T20:26:03Z","updated_at":"2015-05-26T20:26:03Z","body":"Good catch, thanks! Should be fixed in 75101f3."}}