{"action":"created","issue":{"url":"https://api.github.com/repos/kardianos/govendor/issues/31","labels_url":"https://api.github.com/repos/kardianos/govendor/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/kardianos/govendor/issues/31/comments","events_url":"https://api.github.com/repos/kardianos/govendor/issues/31/events","html_url":"https://github.com/kardianos/govendor/issues/31","id":99328975,"number":31,"title":"`govendor update` doesn't accept import path filter as documented","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":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-06T00:44:18Z","updated_at":"2015-08-06T13:27:00Z","closed_at":"2015-08-06T04:47:43Z","body":"I'm using govendor at b36aaa3777d87f88818d70d8a8a39a4b462cd9ab, with `GO15VENDOREXPERIMENT` set.\r\n\r\n`govendor -h` implies that `govendor update` should accept an import filter. It even gives this example:\r\n\r\n    govendor update +ven github.com/company/project/... bitbucket.org/user/pkg\r\n\r\nBut it doesn't seem to work for me. To reproduce:\r\n\r\n    rm -rf $GOPATH/src\r\n    mkdir -p $GOPATH/src/github.com/{jacobsa,googlecloudplatform}\r\n    git clone https://github.com/jacobsa/gcloud.git $GOPATH/src/github.com/jacobsa/gcloud\r\n    git clone https://github.com/GoogleCloudPlatform/gcsfuse.git $GOPATH/src/github.com/googlecloudplatform/gcsfuse\r\n    \r\n    cd $GOPATH/src/github.com/jacobsa/gcloud\r\n    git checkout 34c6f95\r\n    \r\n    cd $GOPATH/src/github.com/googlecloudplatform/gcsfuse\r\n    git checkout 6ce14c9\r\n    \r\n    govendor update github.com/jacobsa/gcloud/gcs/...\r\n\r\nThe final command gives me this output:\r\n\r\n    Error: Package \"github.com/jacobsa/gcloud/gcs/...\" not a go package or not in GOPATH.\r\n\r\nInstead I have to use this awful but effective workaround:\r\n\r\n    govendor update $(govendor list +v | ggrep -o -P '(?<=\\[)github\\.com/jacobsa/gcloud/gcs(/\\S+)?(?=\\])')\r\n\r\n(Side note: it would be nice if `govendor list` output were more amenable to parsing for one-liners like this.)"},"comment":{"url":"https://api.github.com/repos/kardianos/govendor/issues/comments/128363596","html_url":"https://github.com/kardianos/govendor/issues/31#issuecomment-128363596","issue_url":"https://api.github.com/repos/kardianos/govendor/issues/31","id":128363596,"user":{"login":"kardianos","id":755121,"avatar_url":"https://avatars.githubusercontent.com/u/755121?v=3","gravatar_id":"","url":"https://api.github.com/users/kardianos","html_url":"https://github.com/kardianos","followers_url":"https://api.github.com/users/kardianos/followers","following_url":"https://api.github.com/users/kardianos/following{/other_user}","gists_url":"https://api.github.com/users/kardianos/gists{/gist_id}","starred_url":"https://api.github.com/users/kardianos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kardianos/subscriptions","organizations_url":"https://api.github.com/users/kardianos/orgs","repos_url":"https://api.github.com/users/kardianos/repos","events_url":"https://api.github.com/users/kardianos/events{/privacy}","received_events_url":"https://api.github.com/users/kardianos/received_events","type":"User","site_admin":false},"created_at":"2015-08-06T13:26:59Z","updated_at":"2015-08-06T13:26:59Z","body":"This was a bit by design, though I could see how it is surprising as I think it is different than what the \"go\" tool does. Opened #32 ."}}