snapcraft: Update to work with Go Modules

This commit is contained in:
Bjørn Erik Pedersen 2018-08-29 09:35:45 +02:00
parent 1ff54ab3d9
commit a2f0f9d475
No known key found for this signature in database
GPG Key ID: 330E6E2BD4859D8F

View 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)..."