Update Go to 1.24.5 (#30770)

## #30730 
- Update Go version
- Update the docs for this process
- Confirmed `fleet`, `fleetctl`, and related docker images build
successfully
- Note that failing tests are unrelated: see [Slack
thread](https://fleetdm.slack.com/archives/C019WG4GH0A/p1752175318523689)

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
This commit is contained in:
jacobshandling
2025-07-15 10:59:17 -07:00
committed by GitHub
co-authored by Jacob Shandling
parent 5c72b8f4bf
commit 555ae5441e
10 changed files with 15 additions and 9 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
FROM --platform=linux/amd64 golang:1.24.4-bullseye@sha256:dfd72198d14bc22f270c9e000c304a2ffd19f5a5f693fad82643311afdc6b568
FROM --platform=linux/amd64 golang:1.24.5-bullseye@sha256:254c0d1f13aad57bb210caa9e049deaee17ab7b8a976dba755cba1adf3fbe291
LABEL maintainer="Fleet Developers"
RUN mkdir -p /usr/src/fleet
+1
View File
@@ -0,0 +1 @@
* Updated go to 1.24.5
@@ -14,7 +14,11 @@ See the "Go linter" section below about upgrading the Go linter version.
## Upgrading go for all Fleet
Run `make update-go version={target_version}` (for example, `make update-go version=1.24.5`) and update the SHA256 of the updated Dockerfiles manually.
1. Run `make update-go version={target_version}` (for example, `make update-go version=1.24.5`)
2. Manually update the index digest sha256 of the updated Dockerfiles with the updated value of the
relevant OS/Arch of the official Docker image from
https://hub.docker.com/_/golang/tags?name=<image_for_the_dockerfile> (e.g.,
`https://hub.docker.com/_/golang/tags?name=1.24.5-bullseye` when upgrading to 1.24.5)
### Go Linter
@@ -27,7 +31,7 @@ Update the instructions in the [Testing and local development doc](https://githu
1. Build `fleet` and `fleetctl` using `make build`.
2. Verify that `fleet serve` runs, the site is accessible, and basic API/db functionality works (try creating a new team, query and policy)
3. Verify that `fleetctl` works by using `fleetctl get config`
4. Run `make go-lint` locally to find and fix any new issues.
4. Run `make lint-go` locally to find and fix any new issues.
5. Create a draft pull request from your branch and verify that tests pass.
## Updating this guide
+1 -1
View File
@@ -1,6 +1,6 @@
module github.com/fleetdm/fleet/v4
go 1.24.4
go 1.24.5
require (
cloud.google.com/go/pubsub v1.45.1
@@ -1,4 +1,4 @@
FROM golang:1.24.4-alpine3.21@sha256:56a23791af0f77c87b049230ead03bd8c3ad41683415ea4595e84ce7eada121a
FROM golang:1.24.5-alpine3.21@sha256:933e5a0829a1f97cc99917e3b799ebe450af30236f5a023a3583d26b5ef9166f
ARG TAG
RUN apk add git
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 .
+1
View File
@@ -0,0 +1 @@
* Updated go to 1.24.5
+1 -1
View File
@@ -1,4 +1,4 @@
FROM golang:1.24.4-alpine3.21@sha256:56a23791af0f77c87b049230ead03bd8c3ad41683415ea4595e84ce7eada121a
FROM golang:1.24.5-alpine3.21@sha256:933e5a0829a1f97cc99917e3b799ebe450af30236f5a023a3583d26b5ef9166f
ARG TAG
RUN apk update && apk add --no-cache git
RUN git clone -b $TAG --depth=1 --no-tags --progress --no-recurse-submodules https://github.com/fleetdm/fleet.git && cd /go/fleet/tools/mdm/migration/mdmproxy && go build .
+1 -1
View File
@@ -1,6 +1,6 @@
module bitlocker
go 1.24.4
go 1.24.5
require github.com/go-ole/go-ole v1.3.0
+1 -1
View File
@@ -1,6 +1,6 @@
module github.com/fleetdm/fleet/v4/tools/snapshot
go 1.24.4
go 1.24.5
require (
github.com/manifoldco/promptui v0.9.0
+1 -1
View File
@@ -1,6 +1,6 @@
module terraform-provider-fleetdm
go 1.24.4
go 1.24.5
require (
github.com/hashicorp/terraform-plugin-framework v1.7.0