{"action":"opened","issue":{"url":"https://api.github.com/repos/kardianos/govendor/issues/30","labels_url":"https://api.github.com/repos/kardianos/govendor/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/kardianos/govendor/issues/30/comments","events_url":"https://api.github.com/repos/kardianos/govendor/issues/30/events","html_url":"https://github.com/kardianos/govendor/issues/30","id":99327240,"number":30,"title":"Is there a way to update source files based on the contents of vendor.json?","user":{"login":"jacobsa","id":202895,"avatar_url":"https://avatars.githubusercontent.com/u/202895?v=3","gravatar_id":"","url":"https://api.github.com/users/jacobsa","html_url":"https://github.com/jacobsa","followers_url":"https://api.github.com/users/jacobsa/followers","following_url":"https://api.github.com/users/jacobsa/following{/other_user}","gists_url":"https://api.github.com/users/jacobsa/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobsa/subscriptions","organizations_url":"https://api.github.com/users/jacobsa/orgs","repos_url":"https://api.github.com/users/jacobsa/repos","events_url":"https://api.github.com/users/jacobsa/events{/privacy}","received_events_url":"https://api.github.com/users/jacobsa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-06T00:27:12Z","updated_at":"2015-08-06T00:27:12Z","closed_at":null,"body":"(Apologies if I'm missing this in the documentation.)\r\n\r\nSay I have an existing repo with vendored dependencies set up by govendor, including a valid `vendor.json` file that describes exactly the current state of the vendored dependencies. Further, say that I want to update a dependency (call it `foo/bar`) to a specific revision, `123abcd`.\r\n\r\nAs I understand it, I must do the following:\r\n\r\n    go get foo/bar\r\n    cd $GOPATH/src/foo/bar\r\n    git checkout 123abcd\r\n    \r\n    cd $GOPATH/src/dependant\r\n    govendor update foo/bar\r\n\r\nThis will cause govendor to update `vendor.json` to give the new revision. But note that `vendor.json` is write-only here; it doesn't appear to actually be useful for anything except an audit trail.\r\n\r\nIs it instead possible for me to manually edit `vendor.json` to say which revisions I want for my dependencies, then tell govendor to \"make it so\" and update the `vendor/` directly appropriately?"}}