Skip to content

Commit b7c5a57

Browse files
committed
update tests to pass go1.16
1 parent 2dc2b4c commit b7c5a57

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

_test/install/gitclone/expected6.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/usr/local/go/src/encoding/base32/base32_test.go:99:4: exprUnparen: the parentheses around p.encoded[len(p.encoded)-1] == '=' are superfluous (rules.go:17)
1+
/usr/local/go/src/encoding/base32/base32_test.go:98:4: exprUnparen: the parentheses around p.encoded[len(p.encoded)-1] == '=' are superfluous (rules.go:17)

_test/install/gitclone/test.bash

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ diff -u actual.txt /root/expected4.txt
2727
./go-ruleguard -e 'm.Match(`$f($*_, ($x), $*_)`)' /root/target.go &> actual.txt || true
2828
diff -u actual.txt /root/expected5.txt
2929

30-
# TODO: make it work with `go mod vendor` properly.
31-
unset GO111MODULE
30+
# Run inside GOROOT.
31+
export GO111MODULE=off
3232
cd /usr/local/go
3333
go get -v -u github.com/quasilyte/go-ruleguard/dsl
3434
/root/go-ruleguard/go-ruleguard -rules /root/rules.go ./src/encoding/... &> actual.txt || true

0 commit comments

Comments
 (0)