rework for gopath and bootstrapping

This commit is contained in:
Tom Scogland
2016-05-17 05:21:11 -07:00
parent 62dd040a8f
commit af4af94203
4 changed files with 78 additions and 21 deletions

View File

@@ -15,5 +15,7 @@ class ThePlatinumSearcher(Package):
extends("go")
def install(self, spec, prefix):
go('install', self.package)
env = os.environ
env['GOPATH'] = self.stage.source_path + ':' + env['GOPATH']
go('install', self.package, env=env)
shutil.copytree('bin', os.path.join(prefix, 'bin'))