From b856368d750f8920e41f193c80e7ed8dce5577de Mon Sep 17 00:00:00 2001 From: mustiikhalil <26250654+mustiikhalil@users.noreply.github.com> Date: Sun, 17 Apr 2022 00:29:18 +0200 Subject: [PATCH] Turn off go modules temporary until we get a proper fix (#7251) --- tests/GoTest.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/GoTest.sh b/tests/GoTest.sh index 9f7ad76fc..85253c177 100755 --- a/tests/GoTest.sh +++ b/tests/GoTest.sh @@ -41,6 +41,11 @@ cp -a ../go/* ./go_gen/src/github.com/google/flatbuffers/go cp -a ./go_test.go ./go_gen/src/flatbuffers_test/ cp -a optional_scalars/*.go ./go_gen/src/optional_scalars +# https://stackoverflow.com/a/63545857/7024978 +# We need to turn off go modules for this script +# to work. +go env -w GO111MODULE=off + # Run tests with necessary flags. # Developers may wish to see more detail by appending the verbosity flag # -test.v to arguments for this command, as in: