Skip to content
Snippets Groups Projects
Commit f9ca5b9f authored by Massimiliano Culpo's avatar Massimiliano Culpo Committed by Todd Gamblin
Browse files

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

parent 6971918c
No related branches found
No related tags found
No related merge requests found
...@@ -104,8 +104,14 @@ def install(self, spec, prefix): ...@@ -104,8 +104,14 @@ def install(self, spec, prefix):
shutil.copy2(f, os.path.join(prefix, f)) shutil.copy2(f, os.path.join(prefix, f))
def setup_environment(self, spack_env, run_env): def setup_environment(self, spack_env, run_env):
spack_env.set('GOROOT_FINAL', self.spec.prefix) try:
spack_env.set('GOROOT_BOOTSTRAP', self.spec['go-bootstrap'].prefix) 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): def setup_dependent_package(self, module, ext_spec):
"""Called before go modules' install() methods. """Called before go modules' install() methods.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment