diff options
author | Anthony Fok <[email protected]> | 2022-06-28 04:09:50 -0600 |
---|---|---|
committer | Anthony Fok <[email protected]> | 2022-06-28 04:09:50 -0600 |
commit | 241481931f5f5f2803cd4be519936b26d8648dfd (patch) | |
tree | ba99db9528b51ef64a45ca32a1c1fe4156388d1c | |
parent | 5caed8a71f2847e51f3866596f36ed68ce743091 (diff) | |
download | hugo-241481931f5f5f2803cd4be519936b26d8648dfd.tar.gz hugo-241481931f5f5f2803cd4be519936b26d8648dfd.zip |
snap: Replace mage with "go build" and set VendorInfo=snap
-rw-r--r-- | snap/snapcraft.yaml | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 892426210..a5070dc79 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -62,12 +62,6 @@ parts: export GOPATH=$(realpath ../go) export PATH=$GOPATH/bin:$PATH - echo ' * Running "go install -v github.com/magefile/mage"...' - go install -v github.com/magefile/mage - - #echo ' * Running "mage -v test"...' - #mage -v test - echo " * SNAPCRAFT_IMAGE_INFO=${SNAPCRAFT_IMAGE_INFO=}" # Example: SNAPCRAFT_IMAGE_INFO='{"build_url": "https://launchpad.net/~gohugoio/+snap/hugo-extended-dev/+build/344022"}' export HUGO_BUILD_TAGS="" @@ -75,7 +69,7 @@ parts: HUGO_BUILD_TAGS="extended" fi echo " * Building hugo (HUGO_BUILD_TAGS=\"$HUGO_BUILD_TAGS\")..." - [ "$SNAPCRAFT_PROJECT_GRADE" = "stable" ] && mage -v hugoNoGitInfo || mage -v hugo + go build -v -ldflags '-X github.com/gohugoio/hugo/common/hugo.vendorInfo=snap' -tags "$HUGO_BUILD_TAGS" ./hugo version ldd hugo || : |