From 0b6fb1d81e0b7fc6a654aa587cc6c89cadde0df7 Mon Sep 17 00:00:00 2001 From: Ambient Code Bot Date: Fri, 10 Apr 2026 11:26:00 +0000 Subject: [PATCH 1/2] ci: add golangci-lint to CI workflow Run golangci-lint via the official GitHub Action as an additional check on pull requests to main. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/ci.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 198761b..107e5b4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -32,3 +32,8 @@ jobs: git status --porcelain exit 1 fi + + - name: Run golangci-lint + uses: golangci/golangci-lint-action@v7 + with: + version: latest From 5152047aac17955ab1249a103675105ee9bac9b0 Mon Sep 17 00:00:00 2001 From: Ambient Code Bot Date: Fri, 10 Apr 2026 11:35:36 +0000 Subject: [PATCH 2/2] fix: check error return value of http.ListenAndServe Wrap with log.Fatal so the process exits with a clear error message if the server fails to start (e.g. port already in use). Fixes errcheck lint finding. Co-Authored-By: Claude Opus 4.6 --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 4f6841f..4eaa686 100644 --- a/main.go +++ b/main.go @@ -28,5 +28,5 @@ func main() { } log.Println("serving", webdavDir, "on", address) - http.ListenAndServe(address, handler) + log.Fatal(http.ListenAndServe(address, handler)) }