Browse files

snap: Skip "mage -v test" due to build failure on Launchpad

The run "go test ./... -tags none" fails with multiple errors of

    use of internal package not allowed


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 52ac85fbc4d4066b5e13df454593597df0166262
Showing with 7 additions and 2 deletions.
  1. +7 −2 snap/snapcraft.yaml
@@ -52,8 +52,13 @@ parts:
cd $GOPATH/src/
echo ' * Running "go get -v"...'
go get -v
echo ' * Running "mage -v test"...'
mage -v test
# Skipping "mage -v test" because "go test ./... -tags none" fails with
# "use of internal package not allowed"
# on autobuilder on Launchpad, see
#echo ' * Running "mage -v test"...'
#mage -v test
echo " * Building hugo (build tag: none)..."
[ "$SNAPCRAFT_PROJECT_GRADE" = "stable" ] && mage -v hugoNoGitInfo || mage -v hugo

0 comments on commit 52ac85f

Please sign in to comment.