From 8e8b5568c2a138d74b8fe30644ef622ac4fb6510 Mon Sep 17 00:00:00 2001 From: Ilker Manap Date: Sun, 4 Oct 2026 09:43:27 +0200 Subject: [PATCH] Build with Go 1.26.6, and check for known vulnerabilities govulncheck found eleven standard-library vulnerabilities reachable from this code at Go 1.26.3 (net/http, crypto/x509, os.Root, net/textproto); the go directive raised to 1.26.6 fixes every one. make vuln runs govulncheck; make check runs it with the tests and vet. Co-Authored-By: Claude Opus 5.5 (1M context) --- Makefile | 13 ++++++++++++- go.mod | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 890fc11..ac7040b 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ MODULE := gitea.mynodes.xyz/ilker/llmgw VERSION ?= $(shell git describe --tags --always --dirty 2>/dev/null || echo dev) LDFLAGS := -X '$(MODULE)/internal/version.Version=$(VERSION)' -.PHONY: build test race lint fmt clean rename proto proto-tools +.PHONY: build test race lint fmt vuln check clean rename proto proto-tools build: go build -ldflags "$(LDFLAGS)" -o bin/llmgw ./cmd/llmgw @@ -20,6 +20,17 @@ fmt: go fmt ./... go vet ./... +# Known vulnerabilities reachable from this code, in the standard library and +# in dependencies. A toolchain left behind is the commonest cause: the go +# directive in go.mod is what fixes it. +vuln: + go run golang.org/x/vuln/cmd/govulncheck@latest ./... + +# What has to pass before a change is merged. +check: test + go vet ./... + $(MAKE) vuln + # Regenerate the agent protocol. Generated code is committed, so this only # needs running when api/proto changes. proto: proto-tools diff --git a/go.mod b/go.mod index d41a6ea..7b9f72d 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module gitea.mynodes.xyz/ilker/llmgw -go 1.26.3 +go 1.26.6 require ( connectrpc.com/connect v1.21.0