diff options
author | Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com> | 2019-06-18 10:49:07 -0700 |
---|---|---|
committer | Peter Scheibel <scheibel1@llnl.gov> | 2019-06-18 10:49:07 -0700 |
commit | 2a919c8851ff9727791bece2492d9485781370a7 (patch) | |
tree | d6b8d35906bfa4adb986824ec2ba121bcc52bf9e | |
parent | f886c7e59dd08afc8a92e208a559a4e120683304 (diff) | |
download | spack-2a919c8851ff9727791bece2492d9485781370a7.tar.gz spack-2a919c8851ff9727791bece2492d9485781370a7.tar.bz2 spack-2a919c8851ff9727791bece2492d9485781370a7.tar.xz spack-2a919c8851ff9727791bece2492d9485781370a7.zip |
Ensure proper gopath set for rclone (#11755)
Fixes #11745
Set the GOPATH environment variable to the stage path to avoid
creation of a $HOME/go directory.
-rw-r--r-- | var/spack/repos/builtin/packages/rclone/package.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/rclone/package.py b/var/spack/repos/builtin/packages/rclone/package.py index 4183507353..00a5221ef9 100644 --- a/var/spack/repos/builtin/packages/rclone/package.py +++ b/var/spack/repos/builtin/packages/rclone/package.py @@ -17,6 +17,10 @@ class Rclone(Package): depends_on("go", type='build') + def setup_environment(self, spack_env, run_env): + # Point GOPATH at the top of the staging dir for the build step. + spack_env.prepend_path('GOPATH', self.stage.path) + def install(self, spec, prefix): go('build') mkdirp(prefix.bin) |