From e7e46cd6f9699164f4d247a05ef8266c8efcd631 Mon Sep 17 00:00:00 2001
From: Olaoluwa Osuntokun <laolu32@gmail.com>
Date: Wed, 15 Jan 2020 04:51:38 -0800
Subject: [PATCH] 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.
---
 goclean.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/goclean.sh b/goclean.sh
index 0a123f9..a01f733 100755
--- a/goclean.sh
+++ b/goclean.sh
@@ -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)"