Deliver Go binaries as fast and easily as possible.
GoReleaser builds Go binaries for several platforms, creates a GitHub release and then pushes a Homebrew formula to a tap repository. All that wrapped in your favorite CI.
This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code. We appreciate your contribution. Please refer to our contributing guidelines for further information.
For questions, support and general discussion, please use GitHub Discussions;
Get GoReleaser
Documentation
Documentation is hosted live at https://goreleaser.com
from https://github.com/goreleaser/goreleaser
-----
编译方法:
If you just want to build from source for whatever reason, follow these steps:
Clone:
git clone https://github.com/goreleaser/goreleaser
cd goreleaser
(这个goreleaser目录里虽然有go.mod和go.sum文件,但是运行go install却并未安装成功)
Get the dependencies:
go get ./...
Build:
go build .
(在当前目录下,会生成可执行文件goreleaser)
Verify it works:
./goreleaser --version(cp goreleaser /usr/local/bin/goreleaser -h)from https://goreleaser.com/install/(另外,虽然https://github.com/goreleaser/goreleaser里面有main.go文件,但是用方法:cd $GOPATH && go get -u -v github.com/goreleaser/goreleaser/ 还是未能安装成功。所以只好用上面的办法来安装了)
No comments:
Post a Comment