{"action":"created","issue":{"url":"https://api.github.com/repos/constabulary/gb/issues/348","labels_url":"https://api.github.com/repos/constabulary/gb/issues/348/labels{/name}","comments_url":"https://api.github.com/repos/constabulary/gb/issues/348/comments","events_url":"https://api.github.com/repos/constabulary/gb/issues/348/events","html_url":"https://github.com/constabulary/gb/issues/348","id":105404488,"number":348,"title":"gb build not incremental","user":{"login":"ChrisHines","id":1060711,"avatar_url":"https://avatars.githubusercontent.com/u/1060711?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisHines","html_url":"https://github.com/ChrisHines","followers_url":"https://api.github.com/users/ChrisHines/followers","following_url":"https://api.github.com/users/ChrisHines/following{/other_user}","gists_url":"https://api.github.com/users/ChrisHines/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisHines/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisHines/subscriptions","organizations_url":"https://api.github.com/users/ChrisHines/orgs","repos_url":"https://api.github.com/users/ChrisHines/repos","events_url":"https://api.github.com/users/ChrisHines/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisHines/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-08T15:20:40Z","updated_at":"2015-09-10T01:25:45Z","closed_at":null,"body":"#### Environment:\r\n\r\n```\r\nC:\\git-repos\\example-gsftp>go version\r\ngo version go1.4.2 windows/amd64\r\n\r\nC:\\gopath\\src\\github.com\\constabulary\\gb>git describe --always\r\nv0.1.0-26-g9c9026c\r\n```\r\n\r\n#### Steps to reproduce:\r\n\r\n1. Clone https://github.com/constabulary/example-gsftp.\r\n1. Change dir to the project.\r\n1. Run gb build twice without changing any files.\r\n\r\n#### Result\r\n\r\nAll packages are built twice.\r\n\r\n```\r\nC:\\git-repos\\example-gsftp>gb build\r\ngithub.com/kr/fs\r\ngolang.org/x/crypto/ssh\r\ngolang.org/x/crypto/ssh/agent\r\ngithub.com/pkg/sftp\r\ncmd/gsftp\r\n\r\nC:\\git-repos\\example-gsftp>gb build\r\ngithub.com/kr/fs\r\ngolang.org/x/crypto/ssh\r\ngolang.org/x/crypto/ssh/agent\r\ngithub.com/pkg/sftp\r\ncmd/gsftp\r\n\r\nC:\\git-repos\\example-gsftp>\r\n```\r\n\r\n#### Expected\r\n\r\nThe second build should have nothing to do.\r\n\r\n```\r\nC:\\git-repos\\example-gsftp>gb build\r\ngithub.com/kr/fs\r\ngolang.org/x/crypto/ssh\r\ngolang.org/x/crypto/ssh/agent\r\ngithub.com/pkg/sftp\r\ncmd/gsftp\r\n\r\nC:\\git-repos\\example-gsftp>gb build\r\n\r\nC:\\git-repos\\example-gsftp>\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/constabulary/gb/issues/comments/139089050","html_url":"https://github.com/constabulary/gb/issues/348#issuecomment-139089050","issue_url":"https://api.github.com/repos/constabulary/gb/issues/348","id":139089050,"user":{"login":"davecheney","id":7171,"avatar_url":"https://avatars.githubusercontent.com/u/7171?v=3","gravatar_id":"","url":"https://api.github.com/users/davecheney","html_url":"https://github.com/davecheney","followers_url":"https://api.github.com/users/davecheney/followers","following_url":"https://api.github.com/users/davecheney/following{/other_user}","gists_url":"https://api.github.com/users/davecheney/gists{/gist_id}","starred_url":"https://api.github.com/users/davecheney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davecheney/subscriptions","organizations_url":"https://api.github.com/users/davecheney/orgs","repos_url":"https://api.github.com/users/davecheney/repos","events_url":"https://api.github.com/users/davecheney/events{/privacy}","received_events_url":"https://api.github.com/users/davecheney/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T01:25:45Z","updated_at":"2015-09-10T01:25:45Z","body":"Thanks. I'll fix that.\n\nOn Thu, Sep 10, 2015 at 11:24 AM, Chris Hines <notifications@github.com>\nwrote:\n\n> The root cause seems to be looking for \"compile\" instead of \"compile.exe\"\n> (for Go 1.5) to check if the compiler is new.\n>\n> I added some Println calls to gb.isStale and found this:\n>\n> C:\\Users\\Chris\\Go\\src\\github.com\\constabulary\\gb>go test -run Stale\n> C:\\Users\\Chris\\AppData\\Local\\Temp\\gb-test-474196803\\pkg\\windows-amd64\\a.a built 0001-01-01 00:00:00 +0000 UTC\n> a\n> C:\\Users\\Chris\\AppData\\Local\\Temp\\gb-test-474196803\\pkg\\windows-amd64\\a.a built 2015-09-09 21:19:48.2656 -0400 EDT\n> GetFileAttributesEx C:\\Go\\pkg\\tool\\windows_amd64\\compile: The system cannot find the file specified.\n> a true\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/constabulary/gb/issues/348#issuecomment-139088913>.\n>\n"}}