go: fix directory structure issue for 1.11.5 (#10484)

This commit is contained in:
Matthias Diener 2019-01-30 20:30:05 -06:00 committed by Peter Scheibel
parent be38fded9b
commit 3ce0fba036

View file

@ -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)