From a91d97993955f1a8e7a911f6a23b39dac96a49f7 Mon Sep 17 00:00:00 2001 From: 2pk03 Date: Tue, 22 Sep 2026 15:39:26 +0200 Subject: [PATCH 1/2] Exclude version metadata from license check --- server_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server_test.go b/server_test.go index 30b765f..87a199e 100644 --- a/server_test.go +++ b/server_test.go @@ -835,6 +835,9 @@ func TestLicenseHeaders(t *testing.T) { if path == "" { continue } + if path == "VERSION" { // machine-readable metadata, not source text + continue + } b, err := os.ReadFile(path) if err != nil { t.Errorf("%s: %v", path, err) From 02aeacf605704136008bba198936c0ec56c34342 Mon Sep 17 00:00:00 2001 From: 2pk03 Date: Tue, 22 Sep 2026 15:41:11 +0200 Subject: [PATCH 2/2] Include version metadata in container build --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index f12ddbd..ce392d6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,7 @@ FROM golang:1.27-alpine AS build WORKDIR /src COPY go.mod ./ COPY *.go ./ +COPY VERSION ./ RUN CGO_ENABLED=0 go build -o /polydisplayd . FROM alpine:3.24