diff options
author | Anthony Fok <foka@debian.org> | 2018-09-24 22:15:42 -0600 |
---|---|---|
committer | Anthony Fok <foka@debian.org> | 2018-09-24 22:15:42 -0600 |
commit | b7706d6aec1c30770f180c9b45df132ba22c87f8 (patch) | |
tree | 3a21505f88c2ddda618b68d1e51621822a8f3cd8 | |
parent | 48413d76f44ecfc9b90f9df63974080f6b285667 (diff) |
snapcraft: Set GO111MODULE=on in override-build script
Apparently, snapcraft's yet-to-be-documented environment declaration
feature is for run-time only.
See https://discourse.gohugo.io/t/hugo-0-48-released/13908/9
and https://forum.snapcraft.io/t/declaratively-defining-environment-variables/175/29
-rw-r--r-- | snapcraft.yaml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/snapcraft.yaml b/snapcraft.yaml index 64493c5cd..6b2cc6bfe 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 |