ref: a475bf125cd76dacc1bf7ccbcc263a7b59efc510
parent: f1dede370840f0ba38e6c0a2e55cd7922167966d
author: Anthony Fok <[email protected]>
date: Sun Sep 30 10:22:01 EDT 2018
snap: Fetch mage with GO111MODULE=off
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -32,13 +32,14 @@
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)..."