gpt4 book ai didi

go - 我可以在生产中使用 master libpq 吗

转载 作者:IT王子 更新时间:2023-10-29 02:08:13 25 4
gpt4 key购买 nike

在生产中使用 lib/pq 的 master 分支可以吗?当你执行 go get gitlab.com/lib/pq 时,你会得到 master 分支,但是有一个版本 v1.0.0。使用 release 而不是 master 分支会更好吗?

最佳答案

lib/pq

Releases

v1.0.0

Initial tagged release. No major recent changes.

Merge pull request #778 from lib/go-mod

add a go.mod file in preparation for a tagged release


lib/pq v1.0.0 添加了对 Go 版本化模块的支持。

对于 Go1.12,考虑为 Go 版本模块升级生产代码。

Go 1.12 的第一个测试版定于本周(2018 年 12 月 3 日)发布。


Go 1.11 Release Notes

Modules, package versioning, and dependency management

Go 1.11 adds preliminary support for a new concept called “modules,” an alternative to GOPATH with integrated support for versioning and package distribution. Using modules, developers are no longer confined to working inside GOPATH, version dependency information is explicit yet lightweight, and builds are more reliable and reproducible.

Module support is considered experimental. Details are likely to change in response to feedback from Go 1.11 users, and we have more tools planned. Although the details of module support may change, projects that convert to modules using Go 1.11 will continue to work with Go 1.12 and later. If you encounter bugs using modules, please file issues so we can fix them. For more information, see the go command documentation.

Proposal: Versioned Go Modules

Go 1.11 Modules .

关于go - 我可以在生产中使用 master libpq 吗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53602650/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com