THRIFT-5601: Fix forward typedef in go compiler
Client: go
While https://github.com/apache/thrift/pull/951 fixed the bug with
forward typedef used in container values, it also introduced a bug that
broke forward typedef used in other cases in go code. Limit the fix of
it to only the container key and value types to fix other cases.
diff --git a/lib/go/test/Makefile.am b/lib/go/test/Makefile.am
index 663b42e..c255a8e 100644
--- a/lib/go/test/Makefile.am
+++ b/lib/go/test/Makefile.am
@@ -61,7 +61,8 @@
ConstOptionalField.thrift \
ProcessorMiddlewareTest.thrift \
ClientMiddlewareExceptionTest.thrift \
- ValidateTest.thrift
+ ValidateTest.thrift \
+ ForwardTypedef.thrift
mkdir -p gopath/src
grep -v list.*map.*list.*map $(THRIFTTEST) | grep -v 'set<Insanity>' > ThriftTest.thrift
$(THRIFT) $(THRIFTARGS) -r IncludesTest.thrift
@@ -96,6 +97,7 @@
$(THRIFT) $(THRIFTARGS_SKIP_REMOTE) ProcessorMiddlewareTest.thrift
$(THRIFT) $(THRIFTARGS) ClientMiddlewareExceptionTest.thrift
$(THRIFT) $(THRIFTARGS) ValidateTest.thrift
+ $(THRIFT) $(THRIFTARGS) ForwardTypedef.thrift
ln -nfs ../../tests gopath/src/tests
cp -r ./dontexportrwtest gopath/src
touch gopath
@@ -121,7 +123,8 @@
./gopath/src/conflictargnamestest \
./gopath/src/processormiddlewaretest \
./gopath/src/clientmiddlewareexceptiontest \
- ./gopath/src/validatetest
+ ./gopath/src/validatetest \
+ ./gopath/src/forwardtypedef
$(GO) test github.com/apache/thrift/lib/go/thrift
$(GO) test ./gopath/src/tests ./gopath/src/dontexportrwtest