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