build: update goclean.sh to properly test all packages

In this commit, we update our `go list` command to account for the
changes to the output of the command when modules are active. If modules
are active, then any packages which are themselves a sub-module won't
properly be listed.
This commit is contained in:
Olaoluwa Osuntokun 2020-01-15 04:51:38 -08:00 committed by Conner Fromknecht
parent 95064ae858
commit e7e46cd6f9
No known key found for this signature in database
GPG key ID: E7D737B67FA592C7

View file

@ -7,7 +7,7 @@
set -ex
test_targets=$(go list ./...)
test_targets=$(go list -deps ./... | grep 'btcwallet')
# Automatic checks
test -z "$(go fmt $test_targets | tee /dev/stderr)"