This is an automated email from the ASF dual-hosted git repository.
jensg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git
The following commit(s) were added to refs/heads/master by this push:
new f44b6ee Modify autogenerated message for Go to standard to match the
expectations of some tools Client: Go Patch: gzuykov
f44b6ee is described below
commit f44b6ee8db9342d804c6ba01da9953e791021bfe
Author: gzuykov <[email protected]>
AuthorDate: Thu Apr 9 16:31:15 2020 +0300
Modify autogenerated message for Go to standard to match the expectations
of some tools
Client: Go
Patch: gzuykov
This closes #2096
---
compiler/cpp/src/thrift/generate/t_go_generator.cc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/compiler/cpp/src/thrift/generate/t_go_generator.cc
b/compiler/cpp/src/thrift/generate/t_go_generator.cc
index a5d55d7..4f87151 100644
--- a/compiler/cpp/src/thrift/generate/t_go_generator.cc
+++ b/compiler/cpp/src/thrift/generate/t_go_generator.cc
@@ -888,13 +888,13 @@ string t_go_generator::render_fastbinary_includes() {
}
/**
- * Autogen'd comment
+ * Autogen'd comment. The different text is necessary due to
+ * https://github.com/golang/go/issues/13560#issuecomment-288457920
*/
string t_go_generator::go_autogen_comment() {
return
std::string() +
- "// Autogenerated by Thrift Compiler (" + THRIFT_VERSION + ")\n"
- "// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE
DOING\n\n";
+ "// Code generated by Thrift Compiler (" + THRIFT_VERSION + "). DO NOT
EDIT.\n\n";
}
/**