Update Go to v1.21.3 (#14634)

for #14633
This commit is contained in:
Roberto Dip 2023-10-19 10:01:05 -03:00 committed by GitHub
parent 851968c128
commit ad9e30f120
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
21 changed files with 27 additions and 25 deletions

View File

@ -41,7 +41,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version: 1.21.1
go-version: 1.21.3
- name: Install Go Dependencies
run: make deps-go

View File

@ -27,7 +27,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version: 1.21.1
go-version: 1.21.3
- name: Checkout Code
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3

View File

@ -53,7 +53,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version: 1.21.1
go-version: 1.21.3
- name: Build, codesign and notarize orbit
run: go run ./orbit/tools/build/build.go

View File

@ -57,7 +57,7 @@ jobs:
timeout-minutes: 60
strategy:
matrix:
go-version: ['^1.21.1']
go-version: ['^1.21.3']
mysql: ['mysql:5.7']
runs-on: ubuntu-latest
needs: gen
@ -161,7 +161,7 @@ jobs:
timeout-minutes: 60
strategy:
matrix:
go-version: ['^1.21.1']
go-version: ['^1.21.3']
runs-on: ubuntu-latest
needs: gen
steps:
@ -201,7 +201,7 @@ jobs:
build-macos-targets:
strategy:
matrix:
go-version: ['^1.21.1']
go-version: ['^1.21.3']
runs-on: macos-latest
steps:
@ -243,7 +243,7 @@ jobs:
timeout-minutes: 60
strategy:
matrix:
go-version: ['^1.21.1']
go-version: ['^1.21.3']
runs-on: ubuntu-latest
needs: [gen, build-macos-targets]
steps:

View File

@ -37,7 +37,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version: '^1.21.1'
go-version: '^1.21.3'
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
@ -85,7 +85,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version: '^1.21.1'
go-version: '^1.21.3'
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
@ -108,7 +108,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version: '^1.21.1'
go-version: '^1.21.3'
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3

View File

@ -38,7 +38,7 @@ jobs:
matrix:
# See #9943, we just need to add windows-latest here once all issues are fixed.
os: [ubuntu-latest, macos-latest]
go-version: ['1.21.1']
go-version: ['1.21.3']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code

View File

@ -48,7 +48,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version: 1.21.1
go-version: 1.21.3
- name: Install Dependencies
run: make deps

View File

@ -242,7 +242,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version: '^1.21.1'
go-version: '^1.21.3'
- name: Checkout Code
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3

View File

@ -33,7 +33,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version: '^1.21.1'
go-version: '^1.21.3'
- name: Checkout Code
uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2
with:

View File

@ -41,7 +41,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
go-version: ['^1.21.1']
go-version: ['^1.21.3']
mysql: ["mysql:5.7.21", "mysql:8.0.28"]
runs-on: ${{ matrix.os }}

View File

@ -41,7 +41,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
go-version: ['^1.21.1']
go-version: ['^1.21.3']
runs-on: ${{ matrix.os }}
steps:

View File

@ -43,7 +43,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
go-version: ['^1.21.1']
go-version: ['^1.21.3']
runs-on: ${{ matrix.os }}
steps:

View File

@ -33,7 +33,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
go-version: ['^1.21.1']
go-version: ['^1.21.3']
runs-on: ${{ matrix.os }}
steps:

1
changes/14633-bump-go Normal file
View File

@ -0,0 +1 @@
* Updated Go version to 1.21.3

View File

@ -1,7 +1,7 @@
FROM golang:1.21.1@sha256:0dff643e5bf836005eea93ad89e084a17681173e54dbaa9ec307fd776acab36e
FROM golang:1.21.3@sha256:d0214956a9c50c300e430c1f6c0a820007ace238e5242c53762e61b344659e05
ARG TAG
RUN git clone -b $TAG --depth=1 --no-tags --progress --no-recurse-submodules https://github.com/fleetdm/fleet.git && cd /go/fleet/cmd/osquery-perf/ && go build .
FROM golang:1.21.1@sha256:0dff643e5bf836005eea93ad89e084a17681173e54dbaa9ec307fd776acab36e
FROM golang:1.21.3@sha256:d0214956a9c50c300e430c1f6c0a820007ace238e5242c53762e61b344659e05
COPY --from=0 /go/fleet/cmd/osquery-perf/osquery-perf /go/osquery-perf

View File

@ -1,4 +1,4 @@
FROM golang:1.21.1-alpine@sha256:0c860c7ceba62231d0f99fb92e9d7c1577f26fea794a12c75756a8f64b146e45 AS builder
FROM golang:1.21.3-alpine@sha256:27c76dcf886c5024320f4fa8ceb57d907494a3bb3d477d0aa7ac8385acd871ea AS builder
RUN apk update && apk add --no-cache git curl openssl unzip
WORKDIR /build
COPY . .

View File

@ -1,4 +1,4 @@
FROM golang:1.21.1-bullseye@sha256:357be9f9e594a338ba16f54c4df16481e7e82533a6571cecaf22dca833622f91 as BUILDER
FROM golang:1.21.3-bullseye@sha256:27b021393d0e0dfffc6cd6cca5e7836ac59f5ac98724c5d6b3b0a82199d275c5 as BUILDER
WORKDIR /src
RUN apt update && apt upgrade -y

View File

@ -1,4 +1,4 @@
FROM golang:1.21.1-alpine@sha256:0c860c7ceba62231d0f99fb92e9d7c1577f26fea794a12c75756a8f64b146e45 AS builder
FROM golang:1.21.3-alpine@sha256:27c76dcf886c5024320f4fa8ceb57d907494a3bb3d477d0aa7ac8385acd871ea AS builder
WORKDIR /build
COPY . .
RUN go get -d -v

View File

@ -1,4 +1,4 @@
FROM golang:1.21.1-alpine@sha256:0c860c7ceba62231d0f99fb92e9d7c1577f26fea794a12c75756a8f64b146e45 AS builder
FROM golang:1.21.3-alpine@sha256:27c76dcf886c5024320f4fa8ceb57d907494a3bb3d477d0aa7ac8385acd871ea AS builder
WORKDIR /build
COPY . .
RUN go get -d -v

View File

@ -6,7 +6,7 @@ RUN cargo install --version 0.16.0 apple-codesign \
&& curl -sSf $transporter_url -o transporter_install.sh \
&& sh transporter_install.sh --target transporter --accept --noexec
FROM golang:1.21.1-bullseye@sha256:357be9f9e594a338ba16f54c4df16481e7e82533a6571cecaf22dca833622f91
FROM golang:1.21.3-bullseye@sha256:27b021393d0e0dfffc6cd6cca5e7836ac59f5ac98724c5d6b3b0a82199d275c5
RUN apt-get update \
&& dpkg --add-architecture i386 \

View File

@ -0,0 +1 @@
* Updated Go version to 1.21.3