deps: update to Go 1.20

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
Paul Meyer 2023-02-03 18:15:40 +01:00
parent 62fbbff91f
commit e011a20c49
39 changed files with 56 additions and 52 deletions

View File

@ -49,7 +49,7 @@ runs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
cache: true
- name: Set up ko

View File

@ -23,7 +23,7 @@ runs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
- name: Build Constellation CLI
uses: ./.github/actions/build_cli

View File

@ -19,7 +19,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: 1.19.5
go-version: 1.20.1
- name: Build and upload azure SNP reporter container image
id: build-and-upload
@ -67,7 +67,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: 1.19.5
go-version: 1.20.1
- name: Download report JWT
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2

View File

@ -29,7 +29,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
- name: Build the bootstrapper
uses: ./.github/actions/build_bootstrapper
@ -45,7 +45,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
- name: Build debugd
uses: ./.github/actions/build_debugd
@ -61,7 +61,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
- name: Build cdbg (Linux, amd64)
uses: ./.github/actions/build_cdbg
@ -86,7 +86,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
- name: Build cdbg (macOS, amd64)
uses: ./.github/actions/build_cdbg
with:
@ -110,7 +110,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
- name: Build disk-mapper
uses: ./.github/actions/build_disk_mapper
@ -126,7 +126,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
- name: Build CLI (Linux, amd64)
uses: ./.github/actions/build_cli
@ -151,7 +151,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
- name: Build CLI (macOS, amd64)
uses: ./.github/actions/build_cli

View File

@ -28,7 +28,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
- name: Build and upload constellation-node-operator container image
uses: ./.github/actions/build_micro_service_ko

View File

@ -30,7 +30,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
- name: Build and upload join service container image
id: build-and-upload

View File

@ -30,7 +30,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
- name: Set up ko
uses: imjasonh/setup-ko@ace48d793556083a76f1e3e6068850c1f4a369aa # v0.6

View File

@ -46,7 +46,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
- name: Build and upload constellation-node-operator container image
uses: ./.github/actions/build_operator

View File

@ -28,7 +28,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
- name: Build and upload qemu-metadata server container image
id: build-and-upload

View File

@ -28,7 +28,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
- name: Build and upload verification-service container image
id: build-and-upload

View File

@ -26,7 +26,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
- name: Build and upload container image
uses: ./.github/actions/build_micro_service

View File

@ -29,7 +29,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
cache: true
- name: Install go-licenses

View File

@ -35,7 +35,7 @@ jobs:
if: matrix.language == 'go'
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
- name: Initialize CodeQL
uses: github/codeql-action/init@17573ee1cc1b9d061760f3a006fc4aac4f944fd5 # v2.2.4

View File

@ -60,7 +60,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
- name: Login to Azure
if: matrix.provider == 'azure'

View File

@ -191,7 +191,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
- name: Checkout head
if: inputs.git-ref == 'head'
@ -259,7 +259,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
- name: Set up gcloud CLI (macOS)
if: inputs.cloudProvider == 'gcp' && runner.os == 'macOS'

View File

@ -95,7 +95,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
- name: Login to Azure
if: matrix.provider == 'azure'

View File

@ -54,7 +54,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
cache: true
- name: Login to AWS

View File

@ -32,7 +32,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
- name: Build CLI
uses: ./.github/actions/build_cli
@ -109,7 +109,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
- name: Download Syft & Grype
uses: ./.github/actions/install_syft_grype

View File

@ -121,7 +121,12 @@ jobs:
strategy:
matrix:
koTarget:
[./joinservice/cmd, ./keyservice/cmd, ./verify/cmd, ./operators/constellation-node-operator]
[
./joinservice/cmd,
./keyservice/cmd,
./verify/cmd,
./operators/constellation-node-operator,
]
include:
- koTarget: ./joinservice/cmd
name: join-service
@ -157,8 +162,7 @@ jobs:
packages: write
strategy:
matrix:
appName:
[qemu-metadata-api, libvirt]
appName: [qemu-metadata-api, libvirt]
include:
- appName: qemu-metadata-api
dockerfile: ./hack/qemu-metadata-api/Dockerfile
@ -273,7 +277,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
cache: true
- name: Build generateMeasurements tool

View File

@ -24,7 +24,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
cache: true
- name: Install ShellCheck

View File

@ -22,7 +22,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
cache: true
cache-dependency-path: constellation/go.mod

View File

@ -34,7 +34,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
cache: true
- name: Get Go submodules

View File

@ -32,7 +32,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
cache: true
- name: Install Dependencies

View File

@ -34,7 +34,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
cache: true
- name: Get Go submodules

View File

@ -28,7 +28,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
cache: true
- name: Run code generation

View File

@ -30,7 +30,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
- name: Install shellfmt
shell: bash

View File

@ -30,7 +30,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
- name: Install shellfmt
shell: bash

View File

@ -33,7 +33,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
- name: Get Go submodules
id: submods

View File

@ -35,7 +35,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
cache: true
- name: Install Dependencies
@ -63,7 +63,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
cache: true
- name: CLI Unit Tests

View File

@ -26,7 +26,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version: "1.19.5"
go-version: "1.20.1"
cache: true
- name: Regenerate CLI reference of the documentation

View File

@ -6,7 +6,7 @@ RUN apt-get update && apt-get install -y \
git
# Install Go
ARG GO_VER=1.19.5
ARG GO_VER=1.20.1
RUN wget -q https://go.dev/dl/go${GO_VER}.linux-amd64.tar.gz && \
tar -C /usr/local -xzf go${GO_VER}.linux-amd64.tar.gz && \
rm go${GO_VER}.linux-amd64.tar.gz

View File

@ -5,7 +5,7 @@ RUN dnf -y update && \
dnf clean all
# Install Go
ARG GO_VER=1.19.5
ARG GO_VER=1.20.1
RUN wget -q https://go.dev/dl/go${GO_VER}.linux-amd64.tar.gz && \
tar -C /usr/local -xzf go${GO_VER}.linux-amd64.tar.gz && \
rm go${GO_VER}.linux-amd64.tar.gz

View File

@ -27,7 +27,7 @@ go_dependencies()
go_rules_dependencies()
go_register_toolchains(version = "1.19.5")
go_register_toolchains(version = "1.20.1")
gazelle_dependencies(go_repository_default_config = "//:WORKSPACE.bazel")

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/edgelesssys/constellation/v2
go 1.19
go 1.20
replace (
k8s.io/api v0.0.0 => k8s.io/api v0.26.1

View File

@ -4,7 +4,7 @@ RUN dnf -y update && \
dnf -y install libvirt-devel @development-tools pkg-config wget git && \
dnf clean all
ARG GO_VER=1.19.5
ARG GO_VER=1.20.1
RUN wget -q https://go.dev/dl/go${GO_VER}.linux-amd64.tar.gz && \
tar -C /usr/local -xzf go${GO_VER}.linux-amd64.tar.gz && \
rm go${GO_VER}.linux-amd64.tar.gz

View File

@ -5,7 +5,7 @@ RUN dnf -y update && \
dnf clean all
# Install Go
ARG GO_VER=1.19.5
ARG GO_VER=1.20.1
RUN wget -q https://go.dev/dl/go${GO_VER}.linux-amd64.tar.gz && \
tar -C /usr/local -xzf go${GO_VER}.linux-amd64.tar.gz && \
rm go${GO_VER}.linux-amd64.tar.gz

View File

@ -4,7 +4,7 @@ RUN dnf -y update && \
dnf install -y wget git
# Install Go
ARG GO_VER=1.19.5
ARG GO_VER=1.20.1
RUN wget -q https://go.dev/dl/go${GO_VER}.linux-amd64.tar.gz && \
tar -C /usr/local -xzf go${GO_VER}.linux-amd64.tar.gz && \
rm go${GO_VER}.linux-amd64.tar.gz

View File

@ -1,6 +1,6 @@
FROM ubuntu:22.04@sha256:c985bc3f77946b8e92c9a3648c6f31751a7dd972e06604785e47303f4ad47c4c as build
ARG GO_VER=1.19.5
ARG GO_VER=1.20.1
ARG GEN_GO_VER=1.28.1
ARG GEN_GO_GRPC_VER=1.2.0
ARG PB_VER=21.8

View File

@ -5,7 +5,7 @@ RUN dnf -y update && \
dnf clean all
# Install Go
ARG GO_VER=1.19.5
ARG GO_VER=1.20.1
RUN wget -q https://go.dev/dl/go${GO_VER}.linux-amd64.tar.gz && \
tar -C /usr/local -xzf go${GO_VER}.linux-amd64.tar.gz && \
rm go${GO_VER}.linux-amd64.tar.gz