Bumping to Go 1.20 in cf-d-c-t docker image

Carson Long

Dear CF Devs,

The ARD working group will soon bump the base of the cloudfoundry/cf-deployment-concourse-tasks docker image to Go 1.20. [1]


We anticipate that most projects will be able to use the new docker image, and Go 1.20, for their existing use cases without any changes. However, we have noted at least one issue worth calling out: changes to the Go command in 1.20 have made it such that some binaries built on Linux are not compatible with other versions of Linux (ex: a Go binary compiled on an Ubuntu Jammy VM fails when pushed to cf-d with a cflinuxfs3 – Ubuntu Bionic – stack) unless compiled with the CGO_ENABLED=0 build flag. [2] [3]


If your project uses the latest tag of the cloudfoundry/cf-deployment-concourse-tasks image and you’re concerned about using Go 1.20, then you may want to consider locking to an older tag (i.e. v14.0.0) of the image for now. [4]


Best regards,

Carson Long


[1] https://github.com/cloudfoundry/cf-deployment-concourse-tasks/pull/147

[2] https://tip.golang.org/doc/go1.20#go-command

[3] https://github.com/cloudfoundry/cf-acceptance-tests/pull/750
[4] https://hub.docker.com/r/cloudfoundry/cf-deployment-concourse-tasks/tags