summaryrefslogtreecommitdiffstats
path: root/snap/snapcraft.yaml
diff options
context:
space:
mode:
authorAnthony Fok <foka@debian.org>2018-09-30 14:22:01 -0600
committerAnthony Fok <foka@debian.org>2018-09-30 23:03:01 -0600
commita475bf125cd76dacc1bf7ccbcc263a7b59efc510 (patch)
tree4d9f5921f89035c185f0c38db7e044b590707e10 /snap/snapcraft.yaml
parentf1dede370840f0ba38e6c0a2e55cd7922167966d (diff)
snap: Fetch mage with GO111MODULE=off
Diffstat (limited to 'snap/snapcraft.yaml')
-rw-r--r--snap/snapcraft.yaml7
1 files changed, 4 insertions, 3 deletions
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index ddf791488..1b1238131 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -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)..."