Cannot find GOOS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SCons Go Tools |
New
|
Undecided
|
Unassigned |
Bug Description
Just retried a Go build using SCons for the Go versions of one of my "toy examples", and got:
KeyError: 'GOOS':
File "/home/
goEnvironment = Environment ( tools = [ 'go' ] )
File "/home/
apply_
File "/home/
env.Tool(tool)
File "/home/
tool(self)
File "/home/
self.
File "/home/
goos, goarch = _get_host_
File "/home/
return config['GOOS'], config['GOARCH']
Not sure why this should be:
|> printenv | grep ^GO
GOOGLETEST_
GOBIN=/
GOARCH=amd64
GOROOT=
GOOS=linux
I also checked that os.environ['GOOS'] was set and correct when SCons executes.