snap: Fetch mage with GO111MODULE=off
authorAnthony Fok <foka@debian.org>
Sun, 30 Sep 2018 20:22:01 +0000 (14:22 -0600)
committerAnthony Fok <foka@debian.org>
Mon, 1 Oct 2018 05:03:01 +0000 (23:03 -0600)
snap/snapcraft.yaml

index ddf79148898dec4abc945428872e9dd42ac46690..1b12381315ec3e792403cfb2de5f4e18e6fcf725 100644 (file)
@@ -32,13 +32,14 @@ parts:
       set -ex
 
       echo "\nStarting override-build:"
-      export GO111MODULE=on
       export GOPATH=$(realpath ../go)
-      export PATH=$GOPATH/bin:/snap/bin:$PATH
+      export PATH=$GOPATH/bin:$PATH
 
       echo ' * Running "go get -v github.com/magefile/mage"...'
-      go get -v github.com/magefile/mage
+      GO111MODULE=off go get -v github.com/magefile/mage
+
       echo ' * Running "mage -v test"...'
+      export GO111MODULE=on
       mage -v test
 
       echo " * Building hugo (build tag: none)..."