From b7c5a57d39d21b272c798492ad8b85101fba26ab Mon Sep 17 00:00:00 2001 From: Iskander Sharipov Date: Thu, 14 Oct 2021 18:49:47 +0300 Subject: [PATCH] update tests to pass go1.16 --- _test/install/gitclone/expected6.txt | 2 +- _test/install/gitclone/test.bash | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/_test/install/gitclone/expected6.txt b/_test/install/gitclone/expected6.txt index acace169..6adfc009 100644 --- a/_test/install/gitclone/expected6.txt +++ b/_test/install/gitclone/expected6.txt @@ -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) +/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) diff --git a/_test/install/gitclone/test.bash b/_test/install/gitclone/test.bash index 11fc5e95..24b2a088 100755 --- a/_test/install/gitclone/test.bash +++ b/_test/install/gitclone/test.bash @@ -27,8 +27,8 @@ diff -u actual.txt /root/expected4.txt ./go-ruleguard -e 'm.Match(`$f($*_, ($x), $*_)`)' /root/target.go &> actual.txt || true diff -u actual.txt /root/expected5.txt -# TODO: make it work with `go mod vendor` properly. -unset GO111MODULE +# Run inside GOROOT. +export GO111MODULE=off cd /usr/local/go go get -v -u github.com/quasilyte/go-ruleguard/dsl /root/go-ruleguard/go-ruleguard -rules /root/rules.go ./src/encoding/... &> actual.txt || true