Skip to content

Commit

Permalink
explain how to do the update to the go.mod file
Browse files Browse the repository at this point in the history
Signed-off-by: Maël Valais <[email protected]>
  • Loading branch information
maelvls committed Jun 20, 2023
1 parent b88c526 commit a82248e
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions content/docs/contributing/release-process.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,20 +349,31 @@ page if a step is missing or if it is outdated.
kicking off a build using the steps in `gcb/build_cert_manager.yaml`. Users with access to
the cert-manager-release project on GCP should be able to view logs in [GCB build history](https://console.cloud.google.com/cloud-build/builds?project=cert-manager-release).
8. Ensure that cmctl refers to the latest tag of cert-manager:
8. In this step, we make sure the Go module
`github.com/cert-manager/cert-manager/cmd/cmctl` can be imported by
third-parties.
1. Bump cert-manager version in [cmctl `go.mod` file](https://github.com/cert-manager/cert-manager/blob/v1.12.0/cmd/ctl/go.mod#L15) and cherry-pick the commit to the release branch.
First, update the `cmd/cmctl`'s `go.mod` with the tag we just created:
2. Add the tag for cmctl:
```bash
# Must be run from the cert-manager repo folder.
go get github.com/cert-manager/cert-manager@$RELEASE_VERSION
```
```bash
# This tag is required to be able to go install cmctl
# See https://stackoverflow.com/questions/60601011/how-are-versions-of-a-sub-module-managed/60601402#60601402
git tag -m"cmd/ctl/$RELEASE_VERSION" "cmd/ctl/$RELEASE_VERSION"
git push origin "cmd/ctl/$RELEASE_VERSION"
```
Then, create a tag for the `cmd/cmctl` module:
```bash
# Must be run from the cert-manager repo folder.
git tag -m"cmd/ctl/$RELEASE_VERSION" "cmd/ctl/$RELEASE_VERSION"
git push origin "cmd/ctl/$RELEASE_VERSION"
```
> **Note:** the reason we need to do this is explained on Stack Overflow:
[how-are-versions-of-a-sub-module-managed][]
[how-are-versions-of-a-sub-module-managed]: https://stackoverflow.com/questions/60601011/how-are-versions-of-a-sub-module-managed/60601402#60601402
9. Create the description for the GitHub Release:
9. In this section, we will be creating the description for the GitHub Release.
> **Note:** This step is about creating the description that will be
> copy-pasted into the GitHub release page. The creation of the "Release
Expand Down

0 comments on commit a82248e

Please sign in to comment.