Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 691 Bytes

BUILD.md

File metadata and controls

29 lines (18 loc) · 691 Bytes

Build and release

  1. go get ... returns an error because the go.mod file has a replace directive. To get around this, edit the go.mod file.
github.com/cockroachdb/cockroach => github.com/cockroachdb/cockroach-gen <commitSHA>

github.com/cockroachdb/cockroach <commitSHA>

Note: Make sure that the Go version is the same as the one used in cockroachdb and the base docker image to make the build.

  1. Tidy up the go.mod file:
go mod tidy
  1. Update the version in the Makefile accordingly.

  2. Generate the binaries:

make build
  1. Release a new version:

Tag the new version and upload the resulting binaries in the bin/ folder to github.