{"action":"created","issue":{"url":"https://api.github.com/repos/kardianos/govendor/issues/335","repository_url":"https://api.github.com/repos/kardianos/govendor","labels_url":"https://api.github.com/repos/kardianos/govendor/issues/335/labels{/name}","comments_url":"https://api.github.com/repos/kardianos/govendor/issues/335/comments","events_url":"https://api.github.com/repos/kardianos/govendor/issues/335/events","html_url":"https://github.com/kardianos/govendor/issues/335","id":243875110,"number":335,"title":"`govendor update` error - not a go package or not in GOPATH","user":{"login":"cswarth","id":295428,"avatar_url":"https://avatars0.githubusercontent.com/u/295428?v=4","gravatar_id":"","url":"https://api.github.com/users/cswarth","html_url":"https://github.com/cswarth","followers_url":"https://api.github.com/users/cswarth/followers","following_url":"https://api.github.com/users/cswarth/following{/other_user}","gists_url":"https://api.github.com/users/cswarth/gists{/gist_id}","starred_url":"https://api.github.com/users/cswarth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cswarth/subscriptions","organizations_url":"https://api.github.com/users/cswarth/orgs","repos_url":"https://api.github.com/users/cswarth/repos","events_url":"https://api.github.com/users/cswarth/events{/privacy}","received_events_url":"https://api.github.com/users/cswarth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-07-18T22:56:54Z","updated_at":"2017-08-22T18:53:30Z","closed_at":null,"body":"I'm running into that horrible \"not a go package or not in GOPATH\" error message (#169) now and I cannot seem to get past it.\r\n\r\n`govendor fetch` seems to do something useful but `govendor update` always fails.\r\n```\r\n$ govendor fetch -v  google.golang.org/grpc\r\nGet version \"google.golang.org/grpc\"@v1.0.3\r\n        Found exact version \"v1.0.3\"\r\n\r\n$ govendor update -v  google.golang.org/grpc\r\nError: Package \"google.golang.org/grpc\" not a go package or not in GOPATH.\r\n```\r\nWhat is this error message suposed to mean?  \"google.golang.org/grpc\" is a Go package so the error message is misleading.\r\n\r\nMy goal is to update the vendored `grpc` package and the vendor.json file to the latest version of `grcp`.  Is there any way to do that from the govendor commandline?  Do I have to wipe out the vendor.json file and all the vendored packages and start from govendor init again?"},"comment":{"url":"https://api.github.com/repos/kardianos/govendor/issues/comments/324118949","html_url":"https://github.com/kardianos/govendor/issues/335#issuecomment-324118949","issue_url":"https://api.github.com/repos/kardianos/govendor/issues/335","id":324118949,"user":{"login":"stuartluscombe","id":500078,"avatar_url":"https://avatars2.githubusercontent.com/u/500078?v=4","gravatar_id":"","url":"https://api.github.com/users/stuartluscombe","html_url":"https://github.com/stuartluscombe","followers_url":"https://api.github.com/users/stuartluscombe/followers","following_url":"https://api.github.com/users/stuartluscombe/following{/other_user}","gists_url":"https://api.github.com/users/stuartluscombe/gists{/gist_id}","starred_url":"https://api.github.com/users/stuartluscombe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuartluscombe/subscriptions","organizations_url":"https://api.github.com/users/stuartluscombe/orgs","repos_url":"https://api.github.com/users/stuartluscombe/repos","events_url":"https://api.github.com/users/stuartluscombe/events{/privacy}","received_events_url":"https://api.github.com/users/stuartluscombe/received_events","type":"User","site_admin":false},"created_at":"2017-08-22T18:53:30Z","updated_at":"2017-08-22T18:53:30Z","body":"I am getting this same error when trying to run `govendor get github.com/gohugoio/hugo`. I reached out to the maintainers of that repo and they requested I bring up the issue here.\r\n\r\nError:\r\n```\r\nstuart@stuart-HP-EliteBook-745-G2 ~/go/bin $ govendor get github.com/gohugoio/hugo\r\nError: Package \"/home/stuart/go\\n/src/github.com/gohugoio/hugo\" not a go package or not in GOPATH.\r\n```\r\n\r\n```\r\nstuart@stuart-HP-EliteBook-745-G2 ~/go/bin $ go env\r\nGOARCH=\"amd64\"\r\nGOBIN=\"/home/stuart/go/bin\"\r\nGOEXE=\"\"\r\nGOHOSTARCH=\"amd64\"\r\nGOHOSTOS=\"linux\"\r\nGOOS=\"linux\"\r\nGOPATH=\"/home/stuart/go\"\r\nGORACE=\"\"\r\nGOROOT=\"/usr/lib/go-1.8\"\r\nGOTOOLDIR=\"/usr/lib/go-1.8/pkg/tool/linux_amd64\"\r\nGCCGO=\"gccgo\"\r\nCC=\"gcc\"\r\nGOGCCFLAGS=\"-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build347036260=/tmp/go-build -gno-record-gcc-switches\"\r\nCXX=\"g++\"\r\nCGO_ENABLED=\"1\"\r\nPKG_CONFIG=\"pkg-config\"\r\nCGO_CFLAGS=\"-g -O2\"\r\nCGO_CPPFLAGS=\"\"\r\nCGO_CXXFLAGS=\"-g -O2\"\r\nCGO_FFLAGS=\"-g -O2\"\r\nCGO_LDFLAGS=\"-g -O2\"\r\n```\r\n\r\nRunning `go get github.com/gohugoio/hugo` does pull down a number of packages into $GOPATH/src, but this is not the supported method for the application. I'm confused as to why there is a random \\n in the error message."}}
{"actor":{"display_login":"stuartluscombe"}}