Skip to content

Upgrade Go Guide

Al Berez edited this page Jul 21, 2021 · 4 revisions

This procedure describes how to upgrade Golang for the cf CLI project.

Phase 1: Confirm that upgrade works locally:

Phase 2: Update Pipeline:

  • Update and push the ci/cli-base/Dockerfile image's FROM golang:<major>.<minor> . Then run the create-cli-base-image Concourse Job.
  • Upgrade GoLang on the OSX Worker: Run brew update and brew upgrade golang. Connection instructions here
  • Upgrade GoLang on the Windows worker(s) by updating this pipeline
  • Update TARGET_GO_VERSION in cli-ci with the new version #
  • Refly the pipelines with ci/bin/reconfigure-pipelines, ci/bin/reconfigure-v7-pipelines and ci/bin/reconfigure-v8-pipelines
  • Starting from the unit tests, unpause each job - waiting for the job to pass with the latest version of GoLang before unpausing the subsequent job.
  • Update the version number in the [developer guide]
  • Commit and Push the install-ubuntu.sh version update, and rerun it on all the workstations.