From fd4bd560b04ffa662e2e1b057a68a505fd42cc8c Mon Sep 17 00:00:00 2001 From: Vishal Rana Date: Wed, 18 Nov 2026 21:39:13 -0800 Subject: [PATCH] chore: build with Go 1.27.4 Go 1.27.4 fixes CVE-2026-97054 in net/http, which the container scan reports as HIGH for binaries built with 1.27.3. --- CONTRIBUTING.md | 2 +- Dockerfile | 2 +- README.md | 2 +- go.mod | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 79730e7d..402bfced 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -10,7 +10,7 @@ just build # browser assets, then the binary just check # the full gate ``` -You need Go 1.27.3 and a C/C++ toolchain on native Linux or macOS (amd64 or arm64), +You need Go 1.27.4 and a C/C++ toolchain on native Linux or macOS (amd64 or arm64), [Bun](https://bun.sh), Node.js 24.19.0, [just](https://just.systems), [golangci-lint](https://golangci-lint.run/), and [Lefthook](https://github.com/evilmartians/lefthook). Running in local auth mode diff --git a/Dockerfile b/Dockerfile index 1d3578bb..a318a401 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,7 @@ RUN cd ui/host && bun run build # is no cross toolchain here. `--platform=$BUILDPLATFORM` is therefore only # correct while TARGETPLATFORM equals BUILDPLATFORM. Adding an architecture to # the CI matrix means either a native runner for it or QEMU, not a GOARCH flag. -FROM --platform=$BUILDPLATFORM golang:1.27.3-bookworm@sha256:972b4110ba0f47539a975c31e52c64765e1ff19f2d74469ae4a595c6676e80a5 AS build +FROM --platform=$BUILDPLATFORM golang:1.27.4-bookworm@sha256:4fa7c968ba93f1635670522dbb01a2c78150443e1385746924566079f36570ea AS build ARG TARGETOS ARG TARGETARCH ARG VERSION=dev diff --git a/README.md b/README.md index 0338945f..a49afa41 100644 --- a/README.md +++ b/README.md @@ -180,7 +180,7 @@ quality gate. See the [performance methodology](https://pitot.dev/docs/concepts/ ## Build from source -- **Go 1.27.3 and a C/C++ toolchain** on native Linux or macOS, amd64 or arm64. +- **Go 1.27.4 and a C/C++ toolchain** on native Linux or macOS, amd64 or arm64. Build with `just build` or `bash scripts/with-duckdb.sh go build ./cmd/pitot`; the wrapper supplies DuckDB's pinned headers, static libraries, and CGO flags. The first build needs network access to download the checksum-verified engine. diff --git a/go.mod b/go.mod index 8883f487..e263b662 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/labstack/pitot -go 1.27.3 +go 1.27.4 require ( cel.dev/cel-go v0.33.2