Skip to content
Snippets Groups Projects
Commit 2a919c88 authored by Tamara Dahlgren's avatar Tamara Dahlgren Committed by Peter Scheibel
Browse files

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.
parent f886c7e5
Branches
Tags
No related merge requests found
...@@ -17,6 +17,10 @@ class Rclone(Package): ...@@ -17,6 +17,10 @@ class Rclone(Package):
depends_on("go", type='build') 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): def install(self, spec, prefix):
go('build') go('build')
mkdirp(prefix.bin) mkdirp(prefix.bin)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment