{"action":"opened","issue":{"url":"https://api.github.com/repos/golang/go/issues/12359","labels_url":"https://api.github.com/repos/golang/go/issues/12359/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/12359/comments","events_url":"https://api.github.com/repos/golang/go/issues/12359/events","html_url":"https://github.com/golang/go/issues/12359","id":103518708,"number":12359,"title":"go test errors out when passed -buildmode=archive","user":{"login":"gsalgado","id":412274,"avatar_url":"https://avatars.githubusercontent.com/u/412274?v=3","gravatar_id":"","url":"https://api.github.com/users/gsalgado","html_url":"https://github.com/gsalgado","followers_url":"https://api.github.com/users/gsalgado/followers","following_url":"https://api.github.com/users/gsalgado/following{/other_user}","gists_url":"https://api.github.com/users/gsalgado/gists{/gist_id}","starred_url":"https://api.github.com/users/gsalgado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsalgado/subscriptions","organizations_url":"https://api.github.com/users/gsalgado/orgs","repos_url":"https://api.github.com/users/gsalgado/repos","events_url":"https://api.github.com/users/gsalgado/events{/privacy}","received_events_url":"https://api.github.com/users/gsalgado/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-27T14:06:22Z","updated_at":"2015-08-27T14:06:22Z","closed_at":null,"body":"I've been looking into ways of getting my builds (mostly for the benefit of tools like the syntastic vim plugin) under 1.5 to be as fast as in 1.4, and one of the tricks I've found to help is to pass -buildmode=archive. It works for go build, but not for go test, which gives me the following error:\r\n\r\n```\r\n$ go test -c -buildmode=\"archive\" ./\r\n# testmain\r\ninvalid value \"\" for flag -buildmode: invalid buildmode: \"\"\r\nusage: link [options] main.o\r\n  -B note\r\n    \tadd an ELF NT_GNU_BUILD_ID note when using ELF\r\n[...]\r\n```"}}