{"action":"opened","issue":{"url":"https://api.github.com/repos/zyedidia/micro/issues/483","repository_url":"https://api.github.com/repos/zyedidia/micro","labels_url":"https://api.github.com/repos/zyedidia/micro/issues/483/labels{/name}","comments_url":"https://api.github.com/repos/zyedidia/micro/issues/483/comments","events_url":"https://api.github.com/repos/zyedidia/micro/issues/483/events","html_url":"https://github.com/zyedidia/micro/issues/483","id":194368796,"number":483,"title":"Can't generate runtime.go without explicit $GOBIN (help wanted)","user":{"login":"sirikid","id":4840430,"avatar_url":"https://avatars.githubusercontent.com/u/4840430?v=3","gravatar_id":"","url":"https://api.github.com/users/sirikid","html_url":"https://github.com/sirikid","followers_url":"https://api.github.com/users/sirikid/followers","following_url":"https://api.github.com/users/sirikid/following{/other_user}","gists_url":"https://api.github.com/users/sirikid/gists{/gist_id}","starred_url":"https://api.github.com/users/sirikid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirikid/subscriptions","organizations_url":"https://api.github.com/users/sirikid/orgs","repos_url":"https://api.github.com/users/sirikid/repos","events_url":"https://api.github.com/users/sirikid/events{/privacy}","received_events_url":"https://api.github.com/users/sirikid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-08T15:43:02Z","updated_at":"2016-12-08T15:43:02Z","closed_at":null,"body":"Subj, I don't know why, but I can't generate runtime.go without explicit $GOBIN\r\n```\r\n$ make runtime\r\ngo get -u github.com/jteeuwen/go-bindata/...\r\n/go-bindata -nometadata -o runtime.go runtime/...\r\nmake: /go-bindata: Command not found\r\nmake: *** [Makefile:42: runtime] Error 127\r\n\r\n$ GOBIN=\"$GOPATH/bin\" make runtime\r\ngo get -u github.com/jteeuwen/go-bindata/...\r\n/home/sirikid/sources/go/bin/go-bindata -nometadata -o runtime.go runtime/...\r\nmv runtime.go cmd/micro\r\n\r\n$ echo $GOPATH\r\n/home/sirikid/sources/go\r\n\r\n$ echo $GOBIN\r\n\r\n\r\n$ make -v\r\nGNU Make 4.2.1\r\nBuilt for x86_64-pc-linux-gnu\r\nCopyright (C) 1988-2016 Free Software Foundation, Inc.\r\nLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\r\nThis is free software: you are free to change and redistribute it.\r\nThere is NO WARRANTY, to the extent permitted by law.\r\n```\r\n\r\nAlso, `$(GOPATH)/bin` instead `$(GOBIN)` works well.\r\n```diff\r\ndiff --git a/Makefile b/Makefile\r\nindex 67873d6..a15e683 100644\r\n--- a/Makefile\r\n+++ b/Makefile\r\n@@ -4,8 +4,6 @@ VERSION = $(shell go run tools/build-version.go)\r\n HASH = $(shell git rev-parse --short HEAD)\r\n DATE = $(shell go run tools/build-date.go)\r\n\r\n-GOBIN ?= $(GOPATH)/bin\r\n-\r\n # Builds micro after checking dependencies but without updating the runtime\r\n build: deps\r\n        go build -ldflags \"-s -w -X main.Version=$(VERSION) -X main.CommitHash=$(HASH) -X 'main.CompileDate=$(DATE)'\" ./cmd/micro\r\n@@ -39,7 +37,7 @@ update:\r\n # Builds the runtime\r\n runtime:\r\n        go get -u github.com/jteeuwen/go-bindata/...\r\n-       $(GOBIN)/go-bindata -nometadata -o runtime.go runtime/...\r\n+       $(GOPATH)/bin/go-bindata -nometadata -o runtime.go runtime/...\r\n        mv runtime.go cmd/micro\r\n\r\n test:\r\n\r\n```"}}
{"actor":{"display_login":"sirikid"}}