Skip to content

Commit b184f79

Browse files
authored
Merge pull request #12 from novatechflow/fix-version-license-check
Exclude version metadata from license check
2 parents 74669ff + 02aeacf commit b184f79

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎Dockerfile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ FROM golang:1.27-alpine AS build
44
WORKDIR /src
55
COPY go.mod ./
66
COPY *.go ./
7+
COPY VERSION ./
78
RUN CGO_ENABLED=0 go build -o /polydisplayd .
89

910
FROM alpine:3.24

‎server_test.go‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,9 @@ func TestLicenseHeaders(t *testing.T) {
835835
if path == "" {
836836
continue
837837
}
838+
if path == "VERSION" { // machine-readable metadata, not source text
839+
continue
840+
}
838841
b, err := os.ReadFile(path)
839842
if err != nil {
840843
t.Errorf("%s: %v", path, err)

0 commit comments

Comments
 (0)