From 2c84109814f077130a21556583fbd616c102f69d Mon Sep 17 00:00:00 2001 From: Eduardo Apolinario <653394+eapolinario@users.noreply.github.com> Date: Wed, 22 Jan 2025 13:47:52 -0500 Subject: [PATCH] Add instructions on how to yank a flytectl release (#6105) Signed-off-by: Eduardo Apolinario Co-authored-by: Eduardo Apolinario --- flytectl/RELEASE.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/flytectl/RELEASE.md b/flytectl/RELEASE.md index 414aa24199..01b9f5a0fc 100644 --- a/flytectl/RELEASE.md +++ b/flytectl/RELEASE.md @@ -3,3 +3,15 @@ Flytectl releases map to git tags with the prefix `flytectl/` followed by a semver string, e.g. [flytectl/v0.9.0](https://github.com/flyteorg/flyte/releases/tag/flytectl%2Fv0.9.0). To release a new version of flytectl run the <[github workflow](https://github.com/flyteorg/flyte/blob/master/.github/workflows/flytectl-release.yml), which is responsible for releasing this new version. Remember to use valid semver versions, including adding the prefix `v`, e.g. `v1.2.3`. + +# How to yank a release? + +Keep in mind that if you remove the git tag corresponding to the latest version before fixing homebrew as per the instructions in the section below then installing flytectl via homebrew will be broken. Consider the option of releasing a new version instead. + +## From homebrew + +We store the flytectl homebrew formula in https://github.com/flyteorg/homebrew-tap. Notice how only a specific version is exposed, so if the version you need to yank is the latest version, simply push a commit pointing to an earlier version (which should be a previous commit). + +## From the `install.sh` script +Remove the git tag corresponding to the release from the repo (e.g. `flytectl/v0.9.3`) to force the corresponding version to not be returned in the call to list versions in both the [install.sh script](https://github.com/flyteorg/flyte/blob/master/flytectl/install.sh). +