diff --git a/snapcraft.yaml b/snapcraft.yaml index 64493c5cd94..6b2cc6bfea9 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -7,8 +7,6 @@ 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: @@ -25,6 +23,7 @@ parts: - git override-build: | echo "\nStarting override-build:" + export GO111MODULE=on export GOPATH=$(dirname $SNAPCRAFT_PART_INSTALL)/go export PATH=$GOPATH/bin:$PATH cd $GOPATH/src/github.com/gohugoio/hugo