From 2fe78ec03f7461a9bfa91d6c6a04606c0e4af34b Mon Sep 17 00:00:00 2001 From: Michael Sauter Date: Fri, 17 Nov 2023 10:59:35 +0100 Subject: [PATCH 1/2] Update deps --- build/images/Dockerfile.go-toolset | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build/images/Dockerfile.go-toolset b/build/images/Dockerfile.go-toolset index b23941c..518ae3f 100644 --- a/build/images/Dockerfile.go-toolset +++ b/build/images/Dockerfile.go-toolset @@ -1,10 +1,11 @@ -FROM registry.access.redhat.com/ubi8/go-toolset:1.18 +ARG IMG_VERSION=1.20.10 +FROM registry.access.redhat.com/ubi8/go-toolset:${IMG_VERSION} SHELL ["/bin/bash", "-o", "pipefail", "-c"] USER root -ENV GOLANGCI_LINT_VERSION=v1.45.2 \ - GO_JUNIT_REPORT_VERSION=v2.0.0 \ +ENV GOLANGCI_LINT_VERSION=v1.55.2 \ + GO_JUNIT_REPORT_VERSION=v2.1.0 \ GOBIN=/usr/local/bin RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/$GOLANGCI_LINT_VERSION/install.sh | sh -s -- -b /usr/local/bin $GOLANGCI_LINT_VERSION From a151a4dd61b3a15249ac54bc29f328ffbb88c207 Mon Sep 17 00:00:00 2001 From: Michael Sauter Date: Fri, 17 Nov 2023 10:59:50 +0100 Subject: [PATCH 2/2] Add zeitgeist dependencies.yaml file --- CHANGELOG.md | 4 ++++ dependencies.yaml | 31 +++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 dependencies.yaml diff --git a/CHANGELOG.md b/CHANGELOG.md index 81a311f..d2476cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ listed in the changelog. ## [Unreleased] +### Changed + +- Update Go from 1.18 to 1.20, and `golangci-lint` and `go-junit-report` to latest versions ([#6](https://github.com/opendevstack/ods-pipeline-go/pull/6)) + ## [0.2.0] - 2023-10-09 ### Changed diff --git a/dependencies.yaml b/dependencies.yaml new file mode 100644 index 0000000..b93c156 --- /dev/null +++ b/dependencies.yaml @@ -0,0 +1,31 @@ +# https://github.com/kubernetes-sigs/zeitgeist +# Use `zeitgeist validate`` to verify that the dependency version is +# correct in all files referenced in refPaths, and +# whether any newer version is available upstream. +# For GitHub API access, export a `GITHUB_TOKEN`. +dependencies: +- name: go + version: 1.20.10 + scheme: alpha + upstream: + flavour: container + registry: registry.access.redhat.com/ubi8/go-toolset + refPaths: + - path: build/images/Dockerfile.go-toolset + match: IMG_VERSION +- name: golangci-lint + version: 1.55.2 + upstream: + flavour: github + url: golangci/golangci-lint + refPaths: + - path: build/images/Dockerfile.go-toolset + match: GOLANGCI_LINT_VERSION +- name: go-junit-report + version: 2.1.0 + upstream: + flavour: github + url: jstemmer/go-junit-report + refPaths: + - path: build/images/Dockerfile.go-toolset + match: GO_JUNIT_REPORT_VERSION