Skip to content

Bump golang from v1.20 to v1.21

Nick Ilieskou requested to merge nilieskou/upgrade_go_1.21 into main

What does this MR do?

  • Upgrades go.mod from 1.20 to 1.21
  • Updates builder image in the Dockerfile

Notes

Official golang images for 1.21 stopped supporting buster (aka Debian 10) images and started supporting bookworm (aka Debian 12). This means we need to update both he builder imager and the main image of our Dockerfile so that we can satisfy the linker dependency (glibc).

Testing

Tested registry.gitlab.com/gitlab-org/security-products/analyzers/trivy-k8s-wrapper/nilieskou-upgrade-go-1-21:current built by the build branch job through the gitlab-agent.

What are the relevant issue numbers?

Edited by Nick Ilieskou

Merge request reports