snapcraft: Update to work with Go Modules
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 29 Aug 2018 07:35:45 +0000 (09:35 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 29 Aug 2018 07:37:26 +0000 (09:37 +0200)
snapcraft.yaml

index b8b2000367bf421d37e0dc7c903ae5afb3487381..4edbd6dbbde29c3f41449a6bdfcbaa7ff2f57930 100644 (file)
@@ -7,6 +7,8 @@ description: |
   with content and templates and renders them into a full HTML website.
 confinement: strict
 grade: devel # "devel" or "stable"
+environment:
+    GO111MODULE: on
 
 apps:
   hugo:
@@ -28,8 +30,6 @@ parts:
       cd $GOPATH/src/github.com/gohugoio/hugo
       echo ' * Running "go get -v github.com/magefile/mage"...'
       go get -v github.com/magefile/mage
-      echo ' * Running "mage -v vendor"...'
-      mage -v vendor
       echo ' * Running "mage -v test"...'
       mage -v test
       echo " * Building hugo (build tag: none)..."