From e1a83925b8ad271ccf0b4defba6416a47371f434 Mon Sep 17 00:00:00 2001 From: Richard Tweed Date: Thu, 15 Feb 2024 20:34:12 +0000 Subject: [PATCH] Attempt to upgrade to golang 1.22 Signed-off-by: Richard Tweed --- components/producers/golang-nancy/kustomization.yaml | 2 +- components/producers/golang-nancy/task.yaml | 2 +- go.mod | 2 +- third_party/docker/BUILD | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/producers/golang-nancy/kustomization.yaml b/components/producers/golang-nancy/kustomization.yaml index 636c93f51..1d5c34bb8 100644 --- a/components/producers/golang-nancy/kustomization.yaml +++ b/components/producers/golang-nancy/kustomization.yaml @@ -99,7 +99,7 @@ patches: type: string steps: - name: go-deps - image: docker.io/golang:1.18 + image: docker.io/golang:1.22 script: | #!/bin/bash -xe echo $(workspaces.source-code-ws.path) diff --git a/components/producers/golang-nancy/task.yaml b/components/producers/golang-nancy/task.yaml index 30a00b6a9..a36ff3f66 100644 --- a/components/producers/golang-nancy/task.yaml +++ b/components/producers/golang-nancy/task.yaml @@ -14,7 +14,7 @@ spec: description: The workspace containing the source-code to scan. steps: - name: go-deps - image: docker.io/golang:1.18 + image: docker.io/golang:1.22 script: | # necessary because sonatypecommunity/nancy does not include go #!/bin/bash -xe echo $(workspaces.source-code-ws.path) diff --git a/go.mod b/go.mod index 370ec80da..0c858940b 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/ocurity/dracon -go 1.20 +go 1.22 require ( cloud.google.com/go/bigquery v1.48.0 diff --git a/third_party/docker/BUILD b/third_party/docker/BUILD index f5ae341aa..2ff71811a 100644 --- a/third_party/docker/BUILD +++ b/third_party/docker/BUILD @@ -2,9 +2,9 @@ subinclude("//build/defs:buildkit") buildkit_image_mirror( name = "golang", - digest = "sha256:740324e52de766f230ad7113fac9028399d6e03af34883de625dc2230ef7927e", + digest = "sha256:7b297d9abee021bab9046e492506b3c2da8a3722cbf301653186545ecc1e00bb", repo = "docker.io/golang", - tags = ["1.18"], + tags = ["1.22"], ) buildkit_image_mirror(