{"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":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-02T21:59:38Z","updated_at":"2015-05-11T00:28:17Z","closed_at":"2015-05-10T23:24:00Z","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/100722097","html_url":"https://github.com/constabulary/gb/issues/27#issuecomment-100722097","issue_url":"https://api.github.com/repos/constabulary/gb/issues/27","id":100722097,"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},"created_at":"2015-05-11T00:28:17Z","updated_at":"2015-05-11T00:28:17Z","body":"Very nice. Using that on the beego package:\r\n\r\n```\r\njason_000@velocity-micro /c/Users/jason_000/gbtest\r\n$ git clone https://github.com/astaxie/beego src/github.com/astaxie/beego\r\nCloning into 'src/github.com/astaxie/beego'...\r\nremote: Counting objects: 7183, done.\r\nremote: Compressing objects: 100% (3/3), done.\r\nremote: Total 7183 (delta 0), reused 0 (delta 0), pack-reused 7180\r\nReceiving objects: 100% (7183/7183), 5.32 MiB | 2.48 MiB/s, done.\r\nResolving deltas: 100% (3965/3965), done.\r\nChecking connectivity... done.\r\n\r\njason_000@velocity-micro /c/Users/jason_000/gbtest\r\n$ gb build github.com/astaxie/beego\r\ngithub.com/astaxie/beego/config\r\ngithub.com/astaxie/beego/utils\r\ngithub.com/astaxie/beego/logs\r\ngithub.com/astaxie/beego/toolbox\r\ngithub.com/astaxie/beego/session\r\ngithub.com/astaxie/beego/context\r\ngithub.com/astaxie/beego\r\n```"}}