{"action":"closed","issue":{"url":"https://api.github.com/repos/golang/go/issues/10734","labels_url":"https://api.github.com/repos/golang/go/issues/10734/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/10734/comments","events_url":"https://api.github.com/repos/golang/go/issues/10734/events","html_url":"https://github.com/golang/go/issues/10734","id":73800577,"number":10734,"title":"build: fix clean.bash, clean.bat, clean.rc","user":{"login":"minux","id":135652,"avatar_url":"https://avatars.githubusercontent.com/u/135652?v=3","gravatar_id":"","url":"https://api.github.com/users/minux","html_url":"https://github.com/minux","followers_url":"https://api.github.com/users/minux/followers","following_url":"https://api.github.com/users/minux/following{/other_user}","gists_url":"https://api.github.com/users/minux/gists{/gist_id}","starred_url":"https://api.github.com/users/minux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minux/subscriptions","organizations_url":"https://api.github.com/users/minux/orgs","repos_url":"https://api.github.com/users/minux/repos","events_url":"https://api.github.com/users/minux/events{/privacy}","received_events_url":"https://api.github.com/users/minux/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"minux","id":135652,"avatar_url":"https://avatars.githubusercontent.com/u/135652?v=3","gravatar_id":"","url":"https://api.github.com/users/minux","html_url":"https://github.com/minux","followers_url":"https://api.github.com/users/minux/followers","following_url":"https://api.github.com/users/minux/following{/other_user}","gists_url":"https://api.github.com/users/minux/gists{/gist_id}","starred_url":"https://api.github.com/users/minux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minux/subscriptions","organizations_url":"https://api.github.com/users/minux/orgs","repos_url":"https://api.github.com/users/minux/repos","events_url":"https://api.github.com/users/minux/events{/privacy}","received_events_url":"https://api.github.com/users/minux/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/1","html_url":"https://github.com/golang/go/milestones/Go1.5","labels_url":"https://api.github.com/repos/golang/go/milestones/1/labels","id":905105,"number":1,"title":"Go1.5","description":"","creator":{"login":"bradfitz","id":2621,"avatar_url":"https://avatars.githubusercontent.com/u/2621?v=3","gravatar_id":"","url":"https://api.github.com/users/bradfitz","html_url":"https://github.com/bradfitz","followers_url":"https://api.github.com/users/bradfitz/followers","following_url":"https://api.github.com/users/bradfitz/following{/other_user}","gists_url":"https://api.github.com/users/bradfitz/gists{/gist_id}","starred_url":"https://api.github.com/users/bradfitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradfitz/subscriptions","organizations_url":"https://api.github.com/users/bradfitz/orgs","repos_url":"https://api.github.com/users/bradfitz/repos","events_url":"https://api.github.com/users/bradfitz/events{/privacy}","received_events_url":"https://api.github.com/users/bradfitz/received_events","type":"User","site_admin":false},"open_issues":239,"closed_issues":676,"state":"open","created_at":"2014-12-16T02:26:41Z","updated_at":"2015-06-18T16:13:29Z","due_on":"2015-07-31T04:00:00Z","closed_at":null},"comments":7,"created_at":"2015-05-07T01:45:23Z","updated_at":"2015-06-18T16:13:29Z","closed_at":"2015-06-18T16:13:29Z","body":"The various src/clean.{bash,bat,rc} scripts are out of date now, and apparently\r\nnobody uses them.\r\n\r\n(There are at least two problems in those scripts:\r\n1. on windows, it should use 'dist env -w -p' instead of 'dist env -wp'.\r\n2. `go clean -i std` is not sufficient anymore, it also needs `go clean -i cmd`,\r\nbut because `go clean -i cmd` will also remove the dist tool, it must be\r\nexecuted last)\r\n\r\n`git clean -d -X` does almost exactly what the clean script does, and it's pretty\r\nsafe (it only removes ignored files and directories). perhaps we can just delete\r\nthose outdated clean scripts (or change them to simply:\r\n```\r\ncd $(go env GOROOT)\r\ngo tool dist clean\r\ngit clean -d -X\r\n```\r\n)"}}