go get ...
returns an error because thego.mod
file has a replace directive. To get around this, edit thego.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.
- Tidy up the
go.mod
file:
go mod tidy
-
Update the version in the
Makefile
accordingly. -
Generate the binaries:
make build
- Release a new version:
Tag the new version and upload the resulting binaries in the bin/
folder to github.