{"action":"closed","issue":{"url":"https://api.github.com/repos/golang/go/issues/16455","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/16455/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/16455/comments","events_url":"https://api.github.com/repos/golang/go/issues/16455/events","html_url":"https://github.com/golang/go/issues/16455","id":166734450,"number":16455,"title":"cmd/go: handle pkg-config output containing spaces","user":{"login":"ktsakas","id":4787050,"avatar_url":"https://avatars.githubusercontent.com/u/4787050?v=3","gravatar_id":"","url":"https://api.github.com/users/ktsakas","html_url":"https://github.com/ktsakas","followers_url":"https://api.github.com/users/ktsakas/followers","following_url":"https://api.github.com/users/ktsakas/following{/other_user}","gists_url":"https://api.github.com/users/ktsakas/gists{/gist_id}","starred_url":"https://api.github.com/users/ktsakas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktsakas/subscriptions","organizations_url":"https://api.github.com/users/ktsakas/orgs","repos_url":"https://api.github.com/users/ktsakas/repos","events_url":"https://api.github.com/users/ktsakas/events{/privacy}","received_events_url":"https://api.github.com/users/ktsakas/received_events","type":"User","site_admin":false},"labels":[{"id":373402289,"url":"https://api.github.com/repos/golang/go/labels/NeedsInvestigation","name":"NeedsInvestigation","color":"ededed","default":false},{"id":357033853,"url":"https://api.github.com/repos/golang/go/labels/WaitingForInfo","name":"WaitingForInfo","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":{"login":"quentinmit","id":115761,"avatar_url":"https://avatars.githubusercontent.com/u/115761?v=3","gravatar_id":"","url":"https://api.github.com/users/quentinmit","html_url":"https://github.com/quentinmit","followers_url":"https://api.github.com/users/quentinmit/followers","following_url":"https://api.github.com/users/quentinmit/following{/other_user}","gists_url":"https://api.github.com/users/quentinmit/gists{/gist_id}","starred_url":"https://api.github.com/users/quentinmit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quentinmit/subscriptions","organizations_url":"https://api.github.com/users/quentinmit/orgs","repos_url":"https://api.github.com/users/quentinmit/repos","events_url":"https://api.github.com/users/quentinmit/events{/privacy}","received_events_url":"https://api.github.com/users/quentinmit/received_events","type":"User","site_admin":false},"assignees":[{"login":"quentinmit","id":115761,"avatar_url":"https://avatars.githubusercontent.com/u/115761?v=3","gravatar_id":"","url":"https://api.github.com/users/quentinmit","html_url":"https://github.com/quentinmit","followers_url":"https://api.github.com/users/quentinmit/followers","following_url":"https://api.github.com/users/quentinmit/following{/other_user}","gists_url":"https://api.github.com/users/quentinmit/gists{/gist_id}","starred_url":"https://api.github.com/users/quentinmit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quentinmit/subscriptions","organizations_url":"https://api.github.com/users/quentinmit/orgs","repos_url":"https://api.github.com/users/quentinmit/repos","events_url":"https://api.github.com/users/quentinmit/events{/privacy}","received_events_url":"https://api.github.com/users/quentinmit/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/38","html_url":"https://github.com/golang/go/milestones/Go1.8","labels_url":"https://api.github.com/repos/golang/go/milestones/38/labels","id":1709363,"number":38,"title":"Go1.8","description":"","creator":{"login":"griesemer","id":8528975,"avatar_url":"https://avatars.githubusercontent.com/u/8528975?v=3","gravatar_id":"","url":"https://api.github.com/users/griesemer","html_url":"https://github.com/griesemer","followers_url":"https://api.github.com/users/griesemer/followers","following_url":"https://api.github.com/users/griesemer/following{/other_user}","gists_url":"https://api.github.com/users/griesemer/gists{/gist_id}","starred_url":"https://api.github.com/users/griesemer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/griesemer/subscriptions","organizations_url":"https://api.github.com/users/griesemer/orgs","repos_url":"https://api.github.com/users/griesemer/repos","events_url":"https://api.github.com/users/griesemer/events{/privacy}","received_events_url":"https://api.github.com/users/griesemer/received_events","type":"User","site_admin":false},"open_issues":136,"closed_issues":570,"state":"open","created_at":"2016-04-15T16:30:23Z","updated_at":"2016-11-07T21:50:37Z","due_on":"2017-01-31T00:00:00Z","closed_at":null},"comments":9,"created_at":"2016-07-21T04:20:49Z","updated_at":"2016-11-07T21:50:37Z","closed_at":"2016-11-07T21:50:37Z","body":"I am using Go v1.6.2 on Windows 10.\nI tried to build the git2go package in MinGW-w64 using `go build` but it fails.\nWhen I run `go build -x`, I get the following:\n\n```\nCGO_LDFLAGS=\"-g\" \"-O2\" \"-LC:/Program\" \"Files\" \"(x86)/libgit2/lib\" \"-lgit2\" \n\"C:\\\\Go\\\\pkg\\\\tool\\\\windows_amd64\\\\cgo.exe\" -objdir \n\"C:\\\\msys64\\\\tmp\\\\go-build610654106\\\\github.com\\\\libgit2\\\\git2go\\\\_obj\\\\\" \n-importpath github.com/libgit2/git2go -- Files (x86)/libgit2/include \n-IC:/Program -I \"C:\\\\msys64\\\\tmp\\\\go-build610654106\\\\github.com\\\\libgit2\\\\git2go\\\\_obj\\\\\" \nblame.go blob.go branch.go checkout.go cherrypick.go clone.go commit.go \nconfig.go credentials.go describe.go diff.go git.go graph.go \nhandles.go ignore.go index.go merge.go note.go object.go odb.go packbuilder.go \npatch.go refdb.go reference.go remote.go repository.go reset.go revparse.go settings.go \nsignature.go status.go submodule.go tag.go tree.go walk.go\n# github.com/libgit2/git2go\ngcc: error: Files: No such file or directory\ngcc: error: (x86)/libgit2/include: No such file or directory\n```\n\nNotice how **\"-LC:/Program\" \"Files\" \"(x86)/libgit2/lib\"** flag is split up on every space and the parts are put in quotes, which seems to cause the issue.\nI understand that mingw has [problems with spaces in paths](http://stackoverflow.com/questions/5999507/mingw-make-cant-handle-spaces-in-path), however this should be fixable in **build.go**.\n\nThe issue has been mentioned again in [git2go#155](/libgit2/git2go/issues/155#issuecomment-98130072).\n"}}
{"actor":{"display_login":"gopherbot"}}