litao3rd commented on pull request #2315:
URL: https://github.com/apache/thrift/pull/2315#issuecomment-886030562


   @fishy  thanks for your reply. I'm sure I was using the latest thrift go 
library.
   
   I tested under a pure new environment built by these steps.
   ```
   1, download the latest go executable and installed it with the version 
go1.16.6
   2, create a new go project by command `go mod init demo`
   3, generate thrift codes by command `thrift -gen go file.thrift`
   4, installed the latest go thrift library by command `go get 
github.com/apache/thrift/lib/go/thrift/...`
   5, run command `go build`
   ```
   the generated go.mod file showed as below
   ```go.mod
   module demo
   
   go 1.16
   
   require github.com/apache/thrift/lib/go/thrift 
v0.0.0-20210120171102-e27e82c46ba4 // indirect
   
   ```
   
   the generated go.sum file showed as below
   ```go.sum
   github.com/apache/thrift/lib/go/thrift v0.0.0-20210120171102-e27e82c46ba4 
h1:orNYqmQGnSjgOauLWjHEp9/qIDT98xv/0Aa4Zet3/Y8=
   github.com/apache/thrift/lib/go/thrift 
v0.0.0-20210120171102-e27e82c46ba4/go.mod 
h1:V/LzksIyqd3KZuQ2SunvReTG/UkArhII1dAWY5U1sCE=
   ```
   
   
   It's weird that when I install the thrift library it prompts I'm installing 
v0.14.2 which is the latest version. But in go.mod file there is no version 
information just v0.0.0.
   
   ```log
   go: downloading github.com/apache/thrift v0.14.2
   go: downloading github.com/apache/thrift/lib/go/thrift 
v0.0.0-20210120171102-e27e82c46ba4
   go get: added github.com/apache/thrift/lib/go/thrift 
v0.0.0-20210120171102-e27e82c46ba4
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to