Skip to content

Commit

Permalink
snap: Skip "mage -v test" due to build failure on Launchpad
Browse files Browse the repository at this point in the history
The run "go test ./... -tags none" fails with multiple errors of

    use of internal package github.com/gohugoio/hugo/tpl/internal not allowed

See https://launchpadlibrarian.net/390252700/buildlog_snap_ubuntu_xenial_amd64_hugo-dev_BUILDING.txt.gz

I was unable to reproduce it with snapcraft in LXD
on my local Debian laptop, so this error is still a mystery to me.
  • Loading branch information
anthonyfok committed Sep 25, 2018
1 parent 048a64b commit 52ac85f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions snap/snapcraft.yaml
Expand Up @@ -52,8 +52,13 @@ parts:
cd $GOPATH/src/github.com/gohugoio/hugo cd $GOPATH/src/github.com/gohugoio/hugo
echo ' * Running "go get -v github.com/magefile/mage"...' echo ' * Running "go get -v github.com/magefile/mage"...'
go get -v github.com/magefile/mage go get -v github.com/magefile/mage
echo ' * Running "mage -v test"...'
mage -v test # Skipping "mage -v test" because "go test ./... -tags none" fails with
# "use of internal package github.com/gohugoio/hugo/tpl/internal not allowed"
# on autobuilder on Launchpad, see
# https://launchpadlibrarian.net/390252700/buildlog_snap_ubuntu_xenial_amd64_hugo-dev_BUILDING.txt.gz
#echo ' * Running "mage -v test"...'
#mage -v test
echo " * Building hugo (build tag: none)..." echo " * Building hugo (build tag: none)..."
[ "$SNAPCRAFT_PROJECT_GRADE" = "stable" ] && mage -v hugoNoGitInfo || mage -v hugo [ "$SNAPCRAFT_PROJECT_GRADE" = "stable" ] && mage -v hugoNoGitInfo || mage -v hugo
Expand Down

0 comments on commit 52ac85f

Please sign in to comment.