{"action":"created","issue":{"url":"https://api.github.com/repos/constabulary/gb/issues/27","labels_url":"https://api.github.com/repos/constabulary/gb/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/constabulary/gb/issues/27/comments","events_url":"https://api.github.com/repos/constabulary/gb/issues/27/events","html_url":"https://github.com/constabulary/gb/issues/27","id":72705197,"number":27,"title":"windows specific path problem","user":{"login":"jbuberel","id":1711364,"avatar_url":"https://avatars.githubusercontent.com/u/1711364?v=3","gravatar_id":"","url":"https://api.github.com/users/jbuberel","html_url":"https://github.com/jbuberel","followers_url":"https://api.github.com/users/jbuberel/followers","following_url":"https://api.github.com/users/jbuberel/following{/other_user}","gists_url":"https://api.github.com/users/jbuberel/gists{/gist_id}","starred_url":"https://api.github.com/users/jbuberel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbuberel/subscriptions","organizations_url":"https://api.github.com/users/jbuberel/orgs","repos_url":"https://api.github.com/users/jbuberel/repos","events_url":"https://api.github.com/users/jbuberel/events{/privacy}","received_events_url":"https://api.github.com/users/jbuberel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-02T21:59:38Z","updated_at":"2015-05-02T22:01:26Z","closed_at":null,"body":"Just working through a couple of user scenarios, and trying to get `gb` working on a windows workstation.\r\n\r\nI built `gb.exe` successfully, and then created the following directory structure:\r\n\r\n```\r\nC:\\Users\\jason_000\\mymysqltestproj> dir /a-d /b /s\r\nC:\\Users\\jason_000\\mymysqltestproj\\bin\\gb-env.exe\r\nC:\\Users\\jason_000\\mymysqltestproj\\bin\\gb-vendor.exe\r\nC:\\Users\\jason_000\\mymysqltestproj\\bin\\gb.exe\r\nC:\\Users\\jason_000\\mymysqltestproj\\pkg\\windows_amd64\\github.com\\constabulary\\gb.a\r\nC:\\Users\\jason_000\\mymysqltestproj\\pkg\\windows_amd64\\github.com\\constabulary\\gb\\cmd.a\r\nC:\\Users\\jason_000\\mymysqltestproj\\src\\mytestproj\\main.go\r\n```\r\nThe only GO-named environment variable set is GOPATH:\r\n```\r\nC:\\Users\\jason_000\\mymysqltestproj> set GO\r\nGOPATH=\"C:\\Users\\jason_000\\mymysqltestproj\"\r\n```\r\nI can run the program using `go run` as follows:\r\n```\r\nC:\\Users\\jason_000\\mymysqltestproj> go run src\\mytestproj\\main.go\r\nHello, world.\r\n```\r\nBut trying to build the application using `gb` fails:\r\n```\r\nC:\\Users\\jason_000\\mymysqltestproj> bin\\gb.exe build -v all\r\n2015/05/02 14:54:14 INFO project root \"C:\\\\Users\\\\jason_000\\\\mymysqltestproj\"\r\n2015/05/02 14:54:14 DEBUG matchPackages: [C:\\Users\\jason_000\\mymysqltestproj\\src] all\r\n2015/05/02 14:54:14 DEBUG args: [mytestproj]\r\n2015/05/02 14:54:14 DEBUG loadPackage: mytestproj\r\n2015/05/02 14:54:14 INFO build duration: 0 map[]\r\n2015/05/02 14:54:14 command \"build\" failed: failed to resolve package \"mytestproj\": cannot find package \"mytestproj\" in any of:\r\n        c:\\go\\src\\mytestproj (from $GOROOT)\r\n        C:\\Users\\jason_000\\mymysqltestproj:C:\\Users\\jason_000\\mymysqltestproj\\vendor\\src\\mytestproj (from $GOPATH)\r\n```\r\nI believe the problem is due o `gb` not appending `src` to the project root when it looks for matching package/path names. In the last line of output, notice that the search path is:\r\n```\r\nC:\\Users\\jason_000\\mymysqltestproj:C:\\Users\\jason_000\\mymysqltestproj\\vendor\\src\\mytestproj\r\n```\r\nInstead of:\r\n```\r\nC:\\Users\\jason_000\\mymysqltestproj\\src:C:\\Users\\jason_000\\mymysqltestproj\\vendor\\src\\mytestproj\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/constabulary/gb/issues/comments/98407922","html_url":"https://github.com/constabulary/gb/issues/27#issuecomment-98407922","issue_url":"https://api.github.com/repos/constabulary/gb/issues/27","id":98407922,"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-05-02T22:01:26Z","updated_at":"2015-05-02T22:01:26Z","body":"Thanks. I'm in the process of setting up CI. I expect there will be a some\nwindows errors.\n\nOn Sun, May 3, 2015 at 7:59 AM, Jason Buberel <notifications@github.com>\nwrote:\n\n> Just working through a couple of user scenarios, and trying to get gb\n> working on a windows workstation.\n>\n> I built gb.exe successfully, and then created the following directory\n> structure:\n>\n> C:\\Users\\jason_000\\mymysqltestproj> dir /a-d /b /s\n> C:\\Users\\jason_000\\mymysqltestproj\\bin\\gb-env.exe\n> C:\\Users\\jason_000\\mymysqltestproj\\bin\\gb-vendor.exe\n> C:\\Users\\jason_000\\mymysqltestproj\\bin\\gb.exe\n> C:\\Users\\jason_000\\mymysqltestproj\\pkg\\windows_amd64\\github.com\\constabulary\\gb.a\n> C:\\Users\\jason_000\\mymysqltestproj\\pkg\\windows_amd64\\github.com\\constabulary\\gb\\cmd.a\n> C:\\Users\\jason_000\\mymysqltestproj\\src\\mytestproj\\main.go\n>\n> The only GO-named environment variable set is GOPATH:\n>\n> C:\\Users\\jason_000\\mymysqltestproj> set GO\n> GOPATH=\"C:\\Users\\jason_000\\mymysqltestproj\"\n>\n> I can run the program using go run as follows:\n>\n> C:\\Users\\jason_000\\mymysqltestproj> go run src\\mytestproj\\main.go\n> Hello, world.\n>\n> But trying to build the application using gb fails:\n>\n> C:\\Users\\jason_000\\mymysqltestproj> bin\\gb.exe build -v all\n> 2015/05/02 14:54:14 INFO project root \"C:\\\\Users\\\\jason_000\\\\mymysqltestproj\"\n> 2015/05/02 14:54:14 DEBUG matchPackages: [C:\\Users\\jason_000\\mymysqltestproj\\src] all\n> 2015/05/02 14:54:14 DEBUG args: [mytestproj]\n> 2015/05/02 14:54:14 DEBUG loadPackage: mytestproj\n> 2015/05/02 14:54:14 INFO build duration: 0 map[]\n> 2015/05/02 14:54:14 command \"build\" failed: failed to resolve package \"mytestproj\": cannot find package \"mytestproj\" in any of:\n>         c:\\go\\src\\mytestproj (from $GOROOT)\n>         C:\\Users\\jason_000\\mymysqltestproj:C:\\Users\\jason_000\\mymysqltestproj\\vendor\\src\\mytestproj (from $GOPATH)\n>\n> I believe the problem is due o gb not appending src to the project root\n> when it looks for matching package/path names. In the last line of output,\n> notice that the search path is:\n>\n> C:\\Users\\jason_000\\mymysqltestproj:C:\\Users\\jason_000\\mymysqltestproj\\vendor\\src\\mytestproj\n>\n> Instead of:\n>\n> C:\\Users\\jason_000\\mymysqltestproj\\src:C:\\Users\\jason_000\\mymysqltestproj\\vendor\\src\\mytestproj\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/constabulary/gb/issues/27>.\n>\n"}}