go: see #2567, temporary fix (#2588)

This commit is contained in:
Massimiliano Culpo 2016-12-15 18:12:33 +01:00 committed by Todd Gamblin
parent 6971918c27
commit f9ca5b9f27

View file

@ -104,8 +104,14 @@ def install(self, spec, prefix):
shutil.copy2(f, os.path.join(prefix, f))
def setup_environment(self, spack_env, run_env):
try:
spack_env.set('GOROOT_FINAL', self.spec.prefix)
spack_env.set('GOROOT_BOOTSTRAP', self.spec['go-bootstrap'].prefix)
except KeyError:
# Needed because we try to get a build-only
# dependency, and this may fail during module
# file creation
pass
def setup_dependent_package(self, module, ext_spec):
"""Called before go modules' install() methods.