Bump go version to 1.19.3

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
Brian Goff 2022-11-01 19:47:22 +00:00
parent 8c5baf4ebb
commit 422a240666
10 changed files with 50 additions and 53 deletions

View File

@ -43,7 +43,7 @@ jobs:
steps: steps:
- uses: actions/setup-go@v3 - uses: actions/setup-go@v3
with: with:
go-version: '1.19.2' go-version: "1.19.3"
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:

View File

@ -12,9 +12,9 @@ on:
env: env:
# Go version we currently use to build containerd across all CI. # Go version we currently use to build containerd across all CI.
# Note: don't forget to update `Binaries` step, as it contains the matrix of all supported Go versions. # Note: don't forget to update `Binaries` step, as it contains the matrix of all supported Go versions.
GO_VERSION: "1.19.2" GO_VERSION: "1.19.3"
permissions: # added using https://github.com/step-security/secure-workflows permissions: # added using https://github.com/step-security/secure-workflows
contents: read contents: read
jobs: jobs:
@ -23,8 +23,8 @@ jobs:
# #
linters: linters:
permissions: permissions:
contents: read # for actions/checkout to fetch code contents: read # for actions/checkout to fetch code
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
name: Linters name: Linters
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
timeout-minutes: 10 timeout-minutes: 10
@ -231,7 +231,7 @@ jobs:
strategy: strategy:
matrix: matrix:
os: [ubuntu-20.04, macos-12, windows-2019, windows-2022] os: [ubuntu-20.04, macos-12, windows-2019, windows-2022]
go-version: ["1.19.2", "1.18.7"] go-version: ["1.19.3", "1.18.8"]
steps: steps:
- name: Install dependencies - name: Install dependencies
if: matrix.os == 'ubuntu-20.04' if: matrix.os == 'ubuntu-20.04'

View File

@ -4,49 +4,47 @@ on:
push: push:
branches: branches:
- main - main
- 'release/**' - "release/**"
pull_request: pull_request:
branches: branches:
- main - main
- 'release/**' - "release/**"
permissions: # added using https://github.com/step-security/secure-workflows permissions: # added using https://github.com/step-security/secure-workflows
contents: read contents: read
jobs: jobs:
CodeQL-Build: CodeQL-Build:
permissions: permissions:
actions: read # for github/codeql-action/init to get workflow details actions: read # for github/codeql-action/init to get workflow details
contents: read # for actions/checkout to fetch code contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/analyze to upload SARIF results security-events: write # for github/codeql-action/analyze to upload SARIF results
strategy: strategy:
fail-fast: false fail-fast: false
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest # CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v3
- uses: actions/setup-go@v3 - uses: actions/setup-go@v3
with: with:
go-version: 1.19.2 go-version: 1.19.3
# Initializes the CodeQL tools for scanning. # Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL - name: Initialize CodeQL
uses: github/codeql-action/init@v2 uses: github/codeql-action/init@v2
# Override language selection by uncommenting this and choosing your languages # Override language selection by uncommenting this and choosing your languages
# with: # with:
# languages: go, javascript, csharp, python, cpp, java # languages: go, javascript, csharp, python, cpp, java
- run: | - run: |
sudo apt-get install -y libseccomp-dev libbtrfs-dev sudo apt-get install -y libseccomp-dev libbtrfs-dev
make make
- name: Perform CodeQL Analysis - name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2 uses: github/codeql-action/analyze@v2

View File

@ -9,7 +9,7 @@ on:
image: image:
description: "Target image name (override)" description: "Target image name (override)"
permissions: # added using https://github.com/step-security/secure-workflows permissions: # added using https://github.com/step-security/secure-workflows
contents: read contents: read
jobs: jobs:
@ -28,7 +28,7 @@ jobs:
steps: steps:
- uses: actions/setup-go@v3 - uses: actions/setup-go@v3
with: with:
go-version: '1.19.2' go-version: "1.19.3"
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:

View File

@ -1,15 +1,15 @@
name: Nightly name: Nightly
on: on:
schedule: schedule:
- cron: '0 0 * * *' # Every day at midnight - cron: "0 0 * * *" # Every day at midnight
pull_request: pull_request:
paths: paths:
- '.github/workflows/nightly.yml' - ".github/workflows/nightly.yml"
env: env:
GO_VERSION: '1.19.2' GO_VERSION: "1.19.3"
permissions: # added using https://github.com/step-security/secure-workflows permissions: # added using https://github.com/step-security/secure-workflows
contents: read contents: read
jobs: jobs:

View File

@ -1,14 +1,14 @@
on: on:
push: push:
tags: tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 - "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
name: Containerd Release name: Containerd Release
env: env:
GO_VERSION: '1.19.2' GO_VERSION: "1.19.3"
permissions: # added using https://github.com/step-security/secure-workflows permissions: # added using https://github.com/step-security/secure-workflows
contents: read contents: read
jobs: jobs:

2
Vagrantfile vendored
View File

@ -99,7 +99,7 @@ EOF
config.vm.provision "install-golang", type: "shell", run: "once" do |sh| config.vm.provision "install-golang", type: "shell", run: "once" do |sh|
sh.upload_path = "/tmp/vagrant-install-golang" sh.upload_path = "/tmp/vagrant-install-golang"
sh.env = { sh.env = {
'GO_VERSION': ENV['GO_VERSION'] || "1.19.2", 'GO_VERSION': ENV['GO_VERSION'] || "1.19.3",
} }
sh.inline = <<~SHELL sh.inline = <<~SHELL
#!/usr/bin/env bash #!/usr/bin/env bash

View File

@ -10,7 +10,7 @@
# #
# docker build -t containerd-test --build-arg RUNC_VERSION=v1.0.0-rc94 -f Dockerfile.test ../ # docker build -t containerd-test --build-arg RUNC_VERSION=v1.0.0-rc94 -f Dockerfile.test ../
ARG GOLANG_VERSION=1.19.2 ARG GOLANG_VERSION=1.19.3
ARG GOLANG_IMAGE=golang ARG GOLANG_IMAGE=golang
FROM ${GOLANG_IMAGE}:${GOLANG_VERSION} AS golang FROM ${GOLANG_IMAGE}:${GOLANG_VERSION} AS golang
@ -19,7 +19,7 @@ FROM ${GOLANG_IMAGE}:${GOLANG_VERSION} AS golang
FROM golang AS runc FROM golang AS runc
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
libseccomp-dev \ libseccomp-dev \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
COPY script/setup/runc-version script/setup/install-runc ./ COPY script/setup/runc-version script/setup/install-runc ./
# Allow overriding the version of runc to install through build-args # Allow overriding the version of runc to install through build-args
@ -34,7 +34,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
btrfs-progs \ btrfs-progs \
libseccomp-dev \ libseccomp-dev \
xfsprogs \ xfsprogs \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
RUN mkdir -p /go/src/github.com/containerd/containerd RUN mkdir -p /go/src/github.com/containerd/containerd
WORKDIR /go/src/github.com/containerd/containerd WORKDIR /go/src/github.com/containerd/containerd
@ -62,7 +62,7 @@ RUN make BUILDTAGS="no_btrfs no_devmapper" binaries install
FROM build-env AS cri-in-userns FROM build-env AS cri-in-userns
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
iptables \ iptables \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
COPY contrib/Dockerfile.test.d/cri-in-userns/etc_containerd_config.toml /etc/containerd/config.toml COPY contrib/Dockerfile.test.d/cri-in-userns/etc_containerd_config.toml /etc/containerd/config.toml
COPY contrib/Dockerfile.test.d/cri-in-userns/docker-entrypoint.sh /docker-entrypoint.sh COPY contrib/Dockerfile.test.d/cri-in-userns/docker-entrypoint.sh /docker-entrypoint.sh
COPY --from=runc /build/ / COPY --from=runc /build/ /
@ -85,13 +85,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
g++ \ g++ \
libtool \ libtool \
unzip \ unzip \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
COPY script/setup/install-protobuf install-protobuf COPY script/setup/install-protobuf install-protobuf
RUN ./install-protobuf \ RUN ./install-protobuf \
&& mkdir -p $DESTDIR/usr/local/bin $DESTDIR/usr/local/include \ && mkdir -p $DESTDIR/usr/local/bin $DESTDIR/usr/local/include \
&& mv /usr/local/bin/protoc $DESTDIR/usr/local/bin/protoc \ && mv /usr/local/bin/protoc $DESTDIR/usr/local/bin/protoc \
&& mv /usr/local/include/google $DESTDIR/usr/local/include/google && mv /usr/local/include/google $DESTDIR/usr/local/include/google
FROM build-env AS dev FROM build-env AS dev
COPY --from=proto3 /build/ / COPY --from=proto3 /build/ /

View File

@ -25,8 +25,7 @@ compile_fuzzers() {
local compile_fuzzer=$2 local compile_fuzzer=$2
local blocklist=$3 local blocklist=$3
for line in $(git grep --full-name "$regex" | grep -v -E "$blocklist") for line in $(git grep --full-name "$regex" | grep -v -E "$blocklist"); do
do
if [[ "$line" =~ (.*)/.*:.*(Fuzz[A-Za-z0-9]+) ]]; then if [[ "$line" =~ (.*)/.*:.*(Fuzz[A-Za-z0-9]+) ]]; then
local pkg=${BASH_REMATCH[1]} local pkg=${BASH_REMATCH[1]}
local func=${BASH_REMATCH[2]} local func=${BASH_REMATCH[2]}
@ -44,11 +43,11 @@ go run main.go $SRC/containerd/images
apt-get update && apt-get install -y wget apt-get update && apt-get install -y wget
cd $SRC cd $SRC
wget --quiet https://go.dev/dl/go1.19.2.linux-amd64.tar.gz wget --quiet https://go.dev/dl/go1.19.3.linux-amd64.tar.gz
mkdir temp-go mkdir temp-go
rm -rf /root/.go/* rm -rf /root/.go/*
tar -C temp-go/ -xzf go1.19.2.linux-amd64.tar.gz tar -C temp-go/ -xzf go1.19.3.linux-amd64.tar.gz
mv temp-go/go/* /root/.go/ mv temp-go/go/* /root/.go/
cd $SRC/containerd cd $SRC/containerd

View File

@ -5,7 +5,7 @@
# lived test environment. # lived test environment.
Set-MpPreference -DisableRealtimeMonitoring:$true Set-MpPreference -DisableRealtimeMonitoring:$true
$PACKAGES= @{ mingw = "10.2.0"; git = ""; golang = "1.19.2"; make = ""; nssm = "" } $PACKAGES= @{ mingw = "10.2.0"; git = ""; golang = "1.19.3"; make = ""; nssm = "" }
Write-Host "Downloading chocolatey package" Write-Host "Downloading chocolatey package"
curl.exe -L "https://packages.chocolatey.org/chocolatey.0.10.15.nupkg" -o 'c:\choco.zip' curl.exe -L "https://packages.chocolatey.org/chocolatey.0.10.15.nupkg" -o 'c:\choco.zip'