[
https://issues.apache.org/jira/browse/THRIFT-5472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17429718#comment-17429718
]
Yuxuan Wang commented on THRIFT-5472:
-------------------------------------
Also, here's the proposed tag message for review (will be properly wrapped):
{noformat}
Tag to retract lib/go/thrift/go.mod file
The purpose of this tag is to retract the version(s) generated by wrongly added
lib/go/thrift/go.mod file. This tag shall not be used in any other way. To use
the latest version of thrift go library, run
go get github.com/apache/thrift@latest
And remove lines containing "github.com/apache/thrift/lib/go/thrift" in your
project's go.mod file, if any.
See the following links for more details:
* https://issues.apache.org/jira/browse/THRIFT-5472
* https://github.com/golang/go/issues/49015{noformat}
> Fix the "latest" version of go library recognized by the go toolchain
> ---------------------------------------------------------------------
>
> Key: THRIFT-5472
> URL: https://issues.apache.org/jira/browse/THRIFT-5472
> Project: Thrift
> Issue Type: Bug
> Reporter: Yuxuan Wang
> Assignee: Yuxuan Wang
> Priority: Major
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Because of a previously failed attempt of THRIFT-5338, there's a git commit
> ([e27e82c|https://github.com/apache/thrift/commit/e27e82c46ba4d46c2c3267701191cdc26614f739])
> on the master branch with lib/go/thrift/go.mod file. Although that file was
> removed in a later commit
> ([d9fcdd3|https://github.com/apache/thrift/commit/d9fcdd3dbafbe1a8296018d0d6c55d972f607a42]),
> the existence of e27e82c confused the go toolchain in the following ways:
> # `go get github.com/apache/thrift/lib/go/thrift@latest` will always import
> e27e82c (`go get github.com/apache/thrift@latest` will import the correct
> latest version)
> # pkg.go.dev will also prompt people that e27e82c is the "latest" version,
> over v0.15.0
> With the [help of go
> team|https://github.com/golang/go/issues/49015#issuecomment-944993211] the
> solution to fix it is to:
> # Create a commit, not necessarily need to be on master branch, with
> lib/go/thrift/go.mod file with the line of `retract
> [v0.0.0-00000000000000-000000000000, v0.0.1-do-not-use]` with an explanation
> of retract reason.
> # Tag that commit with `lib/go/thrift/v0.0.1-do-not-use` and push the tag to
> github.
> # On github releases page, mark that tag as a pre-release.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)