]> Cypherpunks repositories - gostls13.git/commit
cmd/api: don't depend on os/user or USER to check api
authorBrad Fitzpatrick <bradfitz@golang.org>
Fri, 5 Sep 2014 00:13:22 +0000 (17:13 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 5 Sep 2014 00:13:22 +0000 (17:13 -0700)
commit1a14b5bad8926941023ca310fa3b53c70717b1e2
tree417d085886ff79f9bf525c5954b76671c416835f
parenta29437101c5c49841d22c0ee6bf8bcd4c7a5c925
cmd/api: don't depend on os/user or USER to check api

The -nocgo builder failed because it has cgo disabled
as well as no USER environment variable:
http://build.golang.org/log/2250abb82f5022b72a12997b8ff89fcdeff094c9

# Checking API compatibility.
Error getting current user: user: Current not implemented on linux/amd64
exit status 1

Don't require the environment variable here.

LGTM=minux
R=dave, adg, minux
CC=golang-codereviews
https://golang.org/cl/140290043
src/cmd/api/run.go