mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
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
This commit is contained in:
parent
48413d76f4
commit
b7706d6aec
1 changed files with 1 additions and 2 deletions
|
@ -7,8 +7,6 @@ description: |
|
||||||
with content and templates and renders them into a full HTML website.
|
with content and templates and renders them into a full HTML website.
|
||||||
confinement: strict
|
confinement: strict
|
||||||
grade: devel # "devel" or "stable"
|
grade: devel # "devel" or "stable"
|
||||||
environment:
|
|
||||||
GO111MODULE: on
|
|
||||||
|
|
||||||
apps:
|
apps:
|
||||||
hugo:
|
hugo:
|
||||||
|
@ -25,6 +23,7 @@ parts:
|
||||||
- git
|
- git
|
||||||
override-build: |
|
override-build: |
|
||||||
echo "\nStarting override-build:"
|
echo "\nStarting override-build:"
|
||||||
|
export GO111MODULE=on
|
||||||
export GOPATH=$(dirname $SNAPCRAFT_PART_INSTALL)/go
|
export GOPATH=$(dirname $SNAPCRAFT_PART_INSTALL)/go
|
||||||
export PATH=$GOPATH/bin:$PATH
|
export PATH=$GOPATH/bin:$PATH
|
||||||
cd $GOPATH/src/github.com/gohugoio/hugo
|
cd $GOPATH/src/github.com/gohugoio/hugo
|
||||||
|
|
Loading…
Reference in a new issue