go: fix directory structure issue for 1.11.5 (#10484)
This commit is contained in:
parent
be38fded9b
commit
3ce0fba036
1 changed files with 9 additions and 2 deletions
|
@ -82,10 +82,17 @@ def patch(self):
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
bash = which('bash')
|
bash = which('bash')
|
||||||
with working_dir('src'):
|
|
||||||
|
wd = '.'
|
||||||
|
|
||||||
|
# 1.11.5 directory structure is slightly different
|
||||||
|
if self.version == Version('1.11.5'):
|
||||||
|
wd = 'go'
|
||||||
|
|
||||||
|
with working_dir(join_path(wd, 'src')):
|
||||||
bash('{0}.bash'.format('all' if self.run_tests else 'make'))
|
bash('{0}.bash'.format('all' if self.run_tests else 'make'))
|
||||||
|
|
||||||
install_tree('.', prefix)
|
install_tree(wd, prefix)
|
||||||
|
|
||||||
def setup_environment(self, spack_env, run_env):
|
def setup_environment(self, spack_env, run_env):
|
||||||
spack_env.set('GOROOT_FINAL', self.spec.prefix)
|
spack_env.set('GOROOT_FINAL', self.spec.prefix)
|
||||||
|
|
Loading…
Reference in a new issue