多语言包的GitHub版本号-Golang示例

When you write a multi-language GitHub packages, determining a right release version number for them can be tricky.

当您编写多语言的GitHub软件包时,为它们确定正确的发行版本号可能很棘手。

Let’s say your GitHub package is github/foobar and there are language-specific directories in the package, such as go, java, and kotlin. This is common situation for the client libraries that should support multiple language bindings.

假设您的GitHub软件包是github/foobar并且软件包中有特定于语言的目录,例如gojavakotlin 。 对于应支持多种语言绑定的客户端库,这是常见情况。

For this kind of packages, your version number should be like /v1.0.4. If not, the following Golang command doesn’t work because the Go dependency manager will look for a revision go/v1.0.4.

对于此类软件包,您的版本号应类似于/v1.0.4 。 如果不是,则以下Golang命令不起作用,因为Go依赖项管理器将查找修订go/v1.0.4

go get github.com/foobar/[email protected]

This versioning scheme allows us to use different versions for different language bindings.

这种版本控制方案使我们可以对不同的语言绑定使用不同的版本。

翻译自: https://medium.com/@bjlee72/github-version-number-for-multi-language-package-golang-example-d392078c9dd8

你可能感兴趣的:(python,git)