From 24165803823abc9dae0c2ac832e4c1e610ee3c3e Mon Sep 17 00:00:00 2001 From: ssenerg Date: Tue, 17 Nov 2026 17:59:38 +0330 Subject: [PATCH] Build with Go 1.27.4, which fixes an HTTP server crash govulncheck fails CI on Go 1.27.3's GO-2026-6859: a race between http.MaxBytesReader and reading headers can crash an HTTP/1 server, and the web gateway, uploads and pushes all reach it. Go 1.27.4 fixes it. The builder image moves to golang:1.27.4-alpine3.24, pinned by its index digest like before. Co-Authored-By: Claude Opus 5.5 --- README.md | 2 +- deployments/docker/Dockerfile | 2 +- deployments/docker/Dockerfile.template | 2 +- go.mod | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5ae43c6..359369d 100644 --- a/README.md +++ b/README.md @@ -495,7 +495,7 @@ that carry what people post. ## Requirements -- Go 1.27.3, [just](https://github.com/casey/just), [buf](https://buf.build) +- Go 1.27.4, [just](https://github.com/casey/just), [buf](https://buf.build) - Docker with Compose v2 ## Getting started diff --git a/deployments/docker/Dockerfile b/deployments/docker/Dockerfile index 4f94e24..6d59933 100644 --- a/deployments/docker/Dockerfile +++ b/deployments/docker/Dockerfile @@ -4,7 +4,7 @@ ARG DOCKER_REGISTRY=docker.io/ # Go cross-compiles: images for other platforms (--platform) build without # emulation. -FROM --platform=$BUILDPLATFORM ${DOCKER_REGISTRY}library/golang:1.27.3-alpine3.24@sha256:b8c9b82affbbb82a020bbcf998dad2ba9516944ac7e883524642a481a9505e9c AS builder +FROM --platform=$BUILDPLATFORM ${DOCKER_REGISTRY}library/golang:1.27.4-alpine3.24@sha256:70bd7ddea8b6cbe5d6943cde279d6b67feb10cc924fb9100d1d8757c1575b280 AS builder ARG TARGETOS TARGETARCH WORKDIR /src diff --git a/deployments/docker/Dockerfile.template b/deployments/docker/Dockerfile.template index 942c6b8..c9b2808 100644 --- a/deployments/docker/Dockerfile.template +++ b/deployments/docker/Dockerfile.template @@ -2,7 +2,7 @@ ARG DOCKER_REGISTRY=docker.io/ # Go cross-compiles: images for other platforms (--platform) build without # emulation. -FROM --platform=$BUILDPLATFORM ${DOCKER_REGISTRY}library/golang:1.27.3-alpine3.24@sha256:b8c9b82affbbb82a020bbcf998dad2ba9516944ac7e883524642a481a9505e9c AS builder +FROM --platform=$BUILDPLATFORM ${DOCKER_REGISTRY}library/golang:1.27.4-alpine3.24@sha256:70bd7ddea8b6cbe5d6943cde279d6b67feb10cc924fb9100d1d8757c1575b280 AS builder ARG TARGETOS TARGETARCH WORKDIR /src diff --git a/go.mod b/go.mod index f43d2a8..f5878fa 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/ssenerg/gochat -go 1.27.3 +go 1.27.4 require ( github.com/anthdm/hollywood v1.0.5