{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/28290","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/28290/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/28290/comments","events_url":"https://api.github.com/repos/golang/go/issues/28290/events","html_url":"https://github.com/golang/go/issues/28290","id":372141350,"node_id":"MDU6SXNzdWUzNzIxNDEzNTA=","number":28290,"title":"cmd/go: GOCACHE=false is not the same as GOCACHE=off","user":{"login":"poy","id":6554782,"node_id":"MDQ6VXNlcjY1NTQ3ODI=","avatar_url":"https://avatars2.githubusercontent.com/u/6554782?v=4","gravatar_id":"","url":"https://api.github.com/users/poy","html_url":"https://github.com/poy","followers_url":"https://api.github.com/users/poy/followers","following_url":"https://api.github.com/users/poy/following{/other_user}","gists_url":"https://api.github.com/users/poy/gists{/gist_id}","starred_url":"https://api.github.com/users/poy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poy/subscriptions","organizations_url":"https://api.github.com/users/poy/orgs","repos_url":"https://api.github.com/users/poy/repos","events_url":"https://api.github.com/users/poy/events{/privacy}","received_events_url":"https://api.github.com/users/poy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-19T22:57:30Z","updated_at":"2018-10-19T23:12:39Z","closed_at":null,"author_association":"NONE","body":"Please answer these questions before submitting your issue. Thanks!\r\n\r\n\r\n### What version of Go are you using (`go version`)?\r\n```\r\ngo version\r\ngo version go1.11.1 darwin/amd64\r\n```\r\n\r\n### Does this issue reproduce with the latest release?\r\nNo\r\n\r\n### What operating system and processor architecture are you using (`go env`)?\r\n```\r\ngo env\r\nGOARCH=\"amd64\"\r\nGOBIN=\"\"\r\nGOCACHE=\"/Users/pivotal/Library/Caches/go-build\"\r\nGOEXE=\"\"\r\nGOFLAGS=\"\"\r\nGOHOSTARCH=\"amd64\"\r\nGOHOSTOS=\"darwin\"\r\nGOOS=\"darwin\"\r\nGOPATH=\"/Users/pivotal/workspace/go\"\r\nGOPROXY=\"\"\r\nGORACE=\"\"\r\nGOROOT=\"/usr/local/go\"\r\nGOTMPDIR=\"\"\r\nGOTOOLDIR=\"/usr/local/go/pkg/tool/darwin_amd64\"\r\nGCCGO=\"gccgo\"\r\nCC=\"clang\"\r\nCXX=\"clang++\"\r\nCGO_ENABLED=\"1\"\r\nGOMOD=\"\"\r\nCGO_CFLAGS=\"-g -O2\"\r\nCGO_CPPFLAGS=\"\"\r\nCGO_CXXFLAGS=\"-g -O2\"\r\nCGO_FFLAGS=\"-g -O2\"\r\nCGO_LDFLAGS=\"-g -O2\"\r\nPKG_CONFIG=\"pkg-config\"\r\nGOGCCFLAGS=\"-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/44/zr3txl1n45b23kd2kgx1xqq00000gn/T/go-build585099442=/tmp/go-build -gno-record-gcc-switches -fno-common\"\r\n```\r\n\r\n### What did you do?\r\n```\r\nGOCACHE=false go test ./...\r\n```\r\n\r\n### What did you expect to see?\r\ngo's test cache turned off\r\n\r\n### What did you see instead?\r\nLeft the cache on and created a folder named `false`. I've noticed several devs (including myself) expect type to be a bool instead of a more human readable value.\r\n"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/431524310","html_url":"https://github.com/golang/go/issues/28290#issuecomment-431524310","issue_url":"https://api.github.com/repos/golang/go/issues/28290","id":431524310,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTUyNDMxMA==","user":{"login":"ianlancetaylor","id":3194333,"node_id":"MDQ6VXNlcjMxOTQzMzM=","avatar_url":"https://avatars2.githubusercontent.com/u/3194333?v=4","gravatar_id":"","url":"https://api.github.com/users/ianlancetaylor","html_url":"https://github.com/ianlancetaylor","followers_url":"https://api.github.com/users/ianlancetaylor/followers","following_url":"https://api.github.com/users/ianlancetaylor/following{/other_user}","gists_url":"https://api.github.com/users/ianlancetaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/ianlancetaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianlancetaylor/subscriptions","organizations_url":"https://api.github.com/users/ianlancetaylor/orgs","repos_url":"https://api.github.com/users/ianlancetaylor/repos","events_url":"https://api.github.com/users/ianlancetaylor/events{/privacy}","received_events_url":"https://api.github.com/users/ianlancetaylor/received_events","type":"User","site_admin":false},"created_at":"2018-10-19T23:12:39Z","updated_at":"2018-10-19T23:12:39Z","author_association":"CONTRIBUTOR","body":"Well, `GOCACHE=off` is documented.  It's a special case.  And every new value we treat as disabling the cache is another special case.  It seems to me best to minimize special cases, meaning that we should stick to the current documented status.\r\n\r\nOn the other hand we could perhaps consider failing if `GOCACHE` is not `off` and is not an absolute path.  It's hard to imagine a use for explicitly setting `GOCACHE` to anything other than an absolute path."}}
{"actor":{"display_login":"ianlancetaylor"}}