From efbe4c077774ba5554f629281483e1d1a391c85d Mon Sep 17 00:00:00 2001 From: Zach Wasserman Date: Tue, 8 Nov 2022 10:03:23 -0600 Subject: [PATCH] Update Go to 1.19.3 (#8525) (#8614) Co-authored-by: Tomas Touceda --- .github/workflows/build-and-push-fleetctl-docker.yml | 2 +- .github/workflows/build-binaries.yaml | 2 +- .github/workflows/fleet-and-orbit.yml | 8 ++++---- .github/workflows/fleetctl-preview-latest.yml | 2 +- .github/workflows/generate-desktop-targets.yml | 6 +++--- .github/workflows/golangci-lint.yml | 2 +- .github/workflows/goreleaser-fleet.yaml | 2 +- .github/workflows/goreleaser-orbit.yaml | 2 +- .github/workflows/goreleaser-snapshot-fleet.yaml | 2 +- .github/workflows/test-db-changes.yml | 2 +- .github/workflows/test-go.yaml | 2 +- .github/workflows/test-native-tooling-packaging.yml | 2 +- .github/workflows/test-packaging.yml | 6 +++--- .github/workflows/test.yml | 2 +- changes/update-go-1.19.3 | 1 + .../loadtesting/terraform/docker/loadtest.Dockerfile | 4 ++-- .../sandbox/JITProvisioner/deprovisioner/Dockerfile | 2 +- infrastructure/sandbox/JITProvisioner/lambda/Dockerfile | 2 +- infrastructure/sandbox/Monitoring/lambda/Dockerfile | 2 +- infrastructure/sandbox/PreProvisioner/lambda/Dockerfile | 2 +- 20 files changed, 28 insertions(+), 27 deletions(-) create mode 100644 changes/update-go-1.19.3 diff --git a/.github/workflows/build-and-push-fleetctl-docker.yml b/.github/workflows/build-and-push-fleetctl-docker.yml index c1fdf7453..08124af50 100644 --- a/.github/workflows/build-and-push-fleetctl-docker.yml +++ b/.github/workflows/build-and-push-fleetctl-docker.yml @@ -41,7 +41,7 @@ jobs: - name: Set up Go uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f # v2 with: - go-version: 1.19.1 + go-version: 1.19.3 - name: Install Go Dependencies run: make deps-go diff --git a/.github/workflows/build-binaries.yaml b/.github/workflows/build-binaries.yaml index 8713e973a..ca82a59b7 100644 --- a/.github/workflows/build-binaries.yaml +++ b/.github/workflows/build-binaries.yaml @@ -27,7 +27,7 @@ jobs: - name: Install Go uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f # v2 with: - go-version: 1.19.1 + go-version: 1.19.3 - name: Checkout Code uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v2 diff --git a/.github/workflows/fleet-and-orbit.yml b/.github/workflows/fleet-and-orbit.yml index 18ac33eb1..c4f2d9ef1 100644 --- a/.github/workflows/fleet-and-orbit.yml +++ b/.github/workflows/fleet-and-orbit.yml @@ -56,7 +56,7 @@ jobs: timeout-minutes: 60 strategy: matrix: - go-version: ['^1.19.1'] + go-version: ['^1.19.3'] mysql: ['mysql:5.7'] runs-on: ubuntu-latest needs: gen @@ -145,7 +145,7 @@ jobs: timeout-minutes: 60 strategy: matrix: - go-version: ['^1.19.1'] + go-version: ['^1.19.3'] runs-on: ubuntu-latest needs: gen steps: @@ -185,7 +185,7 @@ jobs: build-macos-targets: strategy: matrix: - go-version: ['^1.19.1'] + go-version: ['^1.19.3'] runs-on: macos-latest steps: @@ -227,7 +227,7 @@ jobs: timeout-minutes: 60 strategy: matrix: - go-version: ['^1.19.1'] + go-version: ['^1.19.3'] runs-on: ubuntu-latest needs: [gen, build-macos-targets] steps: diff --git a/.github/workflows/fleetctl-preview-latest.yml b/.github/workflows/fleetctl-preview-latest.yml index 3e2c0a204..c22d010c8 100644 --- a/.github/workflows/fleetctl-preview-latest.yml +++ b/.github/workflows/fleetctl-preview-latest.yml @@ -47,7 +47,7 @@ jobs: matrix: # Doesn't work on Windows because Linux Docker containers are not supported. os: [ubuntu-latest, macos-latest] - go-version: ['1.19.1'] + go-version: ['1.19.3'] runs-on: ${{ matrix.os }} steps: diff --git a/.github/workflows/generate-desktop-targets.yml b/.github/workflows/generate-desktop-targets.yml index 4c38d958f..28df44376 100644 --- a/.github/workflows/generate-desktop-targets.yml +++ b/.github/workflows/generate-desktop-targets.yml @@ -37,7 +37,7 @@ jobs: - name: Install Go uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f # v2 with: - go-version: '^1.19.1' + go-version: '^1.19.3' - name: Checkout uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v2 @@ -85,7 +85,7 @@ jobs: - name: Install Go uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f # v2 with: - go-version: '^1.19.1' + go-version: '^1.19.3' - name: Checkout uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v2 @@ -108,7 +108,7 @@ jobs: - name: Install Go uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f # v2 with: - go-version: '^1.19.1' + go-version: '^1.19.3' - name: Checkout uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v2 diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 89299a107..3b6cffe6d 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -38,7 +38,7 @@ jobs: - uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f with: - go-version: '1.19.1' + go-version: '1.19.3' - name: Run go lint run: | diff --git a/.github/workflows/goreleaser-fleet.yaml b/.github/workflows/goreleaser-fleet.yaml index ef21b5aea..16c53841e 100644 --- a/.github/workflows/goreleaser-fleet.yaml +++ b/.github/workflows/goreleaser-fleet.yaml @@ -39,7 +39,7 @@ jobs: - name: Set up Go uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f # v2 with: - go-version: 1.19.1 + go-version: 1.19.3 - name: Install JS Dependencies run: make deps-js diff --git a/.github/workflows/goreleaser-orbit.yaml b/.github/workflows/goreleaser-orbit.yaml index 4ffa65b78..191ca0c0b 100644 --- a/.github/workflows/goreleaser-orbit.yaml +++ b/.github/workflows/goreleaser-orbit.yaml @@ -52,7 +52,7 @@ jobs: - name: Set up Go uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f # v2 with: - go-version: 1.19.1 + go-version: 1.19.3 - name: Run GoReleaser run: go run github.com/goreleaser/goreleaser@v1.9.2 release --rm-dist -f orbit/.goreleaser.yml diff --git a/.github/workflows/goreleaser-snapshot-fleet.yaml b/.github/workflows/goreleaser-snapshot-fleet.yaml index afad07090..6f39d46b8 100644 --- a/.github/workflows/goreleaser-snapshot-fleet.yaml +++ b/.github/workflows/goreleaser-snapshot-fleet.yaml @@ -37,7 +37,7 @@ jobs: - name: Set up Go uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f # v2 with: - go-version: 1.19.1 + go-version: 1.19.3 - name: Install Dependencies run: make deps diff --git a/.github/workflows/test-db-changes.yml b/.github/workflows/test-db-changes.yml index e7ed7e168..a0ba4ad3f 100644 --- a/.github/workflows/test-db-changes.yml +++ b/.github/workflows/test-db-changes.yml @@ -32,7 +32,7 @@ jobs: - name: Install Go uses: actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a # v2 with: - go-version: '^1.19.1' + go-version: '^1.19.3' - name: Checkout Code uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2 with: diff --git a/.github/workflows/test-go.yaml b/.github/workflows/test-go.yaml index 15928308d..74a0a86ee 100644 --- a/.github/workflows/test-go.yaml +++ b/.github/workflows/test-go.yaml @@ -37,7 +37,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - go-version: ['^1.19.1'] + go-version: ['^1.19.3'] mysql: ["mysql:5.7.21", "mysql:8.0.28"] runs-on: ${{ matrix.os }} diff --git a/.github/workflows/test-native-tooling-packaging.yml b/.github/workflows/test-native-tooling-packaging.yml index d9b74abfa..773d1a270 100644 --- a/.github/workflows/test-native-tooling-packaging.yml +++ b/.github/workflows/test-native-tooling-packaging.yml @@ -40,7 +40,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - go-version: ['^1.19.1'] + go-version: ['^1.19.3'] runs-on: ${{ matrix.os }} steps: diff --git a/.github/workflows/test-packaging.yml b/.github/workflows/test-packaging.yml index 5281d7a40..8e2459e1e 100644 --- a/.github/workflows/test-packaging.yml +++ b/.github/workflows/test-packaging.yml @@ -42,7 +42,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest] - go-version: ['^1.19.1'] + go-version: ['^1.19.3'] runs-on: ${{ matrix.os }} steps: @@ -88,10 +88,10 @@ jobs: - name: Build DEB with Fleet Desktop run: ./build/fleetctl package --type deb --enroll-secret=foo --fleet-url=https://localhost:8080 --fleet-desktop - + - name: Build RPM run: ./build/fleetctl package --type rpm --enroll-secret=foo --fleet-url=https://localhost:8080 - + - name: Build RPM with Fleet Desktop run: ./build/fleetctl package --type rpm --enroll-secret=foo --fleet-url=https://localhost:8080 --fleet-desktop diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5be2d4208..cbbbdc08a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,7 +41,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - go-version: ['^1.19.1'] + go-version: ['^1.19.3'] fleet-tier: [free, premium] runs-on: ${{ matrix.os }} steps: diff --git a/changes/update-go-1.19.3 b/changes/update-go-1.19.3 new file mode 100644 index 000000000..5c071e22a --- /dev/null +++ b/changes/update-go-1.19.3 @@ -0,0 +1 @@ +* Update Go to 1.19.3 diff --git a/infrastructure/loadtesting/terraform/docker/loadtest.Dockerfile b/infrastructure/loadtesting/terraform/docker/loadtest.Dockerfile index 5ff72d7b9..a68a0a077 100644 --- a/infrastructure/loadtesting/terraform/docker/loadtest.Dockerfile +++ b/infrastructure/loadtesting/terraform/docker/loadtest.Dockerfile @@ -1,6 +1,6 @@ -FROM golang:1.19.1 +FROM golang:1.19.3 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.19.1 +FROM golang:1.19.3 COPY --from=0 /go/fleet/cmd/osquery-perf/osquery-perf /go/osquery-perf diff --git a/infrastructure/sandbox/JITProvisioner/deprovisioner/Dockerfile b/infrastructure/sandbox/JITProvisioner/deprovisioner/Dockerfile index 6346ead4f..56523fa0e 100644 --- a/infrastructure/sandbox/JITProvisioner/deprovisioner/Dockerfile +++ b/infrastructure/sandbox/JITProvisioner/deprovisioner/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.19.1-alpine AS builder +FROM golang:1.19.3-alpine AS builder RUN apk update && apk add --no-cache git curl openssl unzip WORKDIR /build COPY . . diff --git a/infrastructure/sandbox/JITProvisioner/lambda/Dockerfile b/infrastructure/sandbox/JITProvisioner/lambda/Dockerfile index a015206e4..110f6ede5 100644 --- a/infrastructure/sandbox/JITProvisioner/lambda/Dockerfile +++ b/infrastructure/sandbox/JITProvisioner/lambda/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.19.1-alpine AS builder +FROM golang:1.19.3-alpine AS builder WORKDIR /build COPY . . RUN go get -d -v diff --git a/infrastructure/sandbox/Monitoring/lambda/Dockerfile b/infrastructure/sandbox/Monitoring/lambda/Dockerfile index 30854faa4..6c02dcda5 100644 --- a/infrastructure/sandbox/Monitoring/lambda/Dockerfile +++ b/infrastructure/sandbox/Monitoring/lambda/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.19.1-alpine AS builder +FROM golang:1.19.3-alpine AS builder WORKDIR /build COPY . . RUN go get -d -v diff --git a/infrastructure/sandbox/PreProvisioner/lambda/Dockerfile b/infrastructure/sandbox/PreProvisioner/lambda/Dockerfile index 2b5c8959b..9e2bf0d9d 100644 --- a/infrastructure/sandbox/PreProvisioner/lambda/Dockerfile +++ b/infrastructure/sandbox/PreProvisioner/lambda/Dockerfile @@ -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.19.1-bullseye +FROM golang:1.19.3-bullseye RUN apt-get update \ && dpkg --add-architecture i386 \