Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

Fix lint (http.NoBody) and restructure release workflow

Martin Vogel600ec428d6d1
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 5acc35d81..9faa6c200 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -16,7 +16,7 @@ permissions:
contents: write
jobs:
- lint:
+ lint-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@@ -31,7 +31,11 @@ jobs:
install-mode: goinstall
args: --timeout=5m
+ - name: Run tests
+ run: go test ./...
+
build-unix:
+ needs: [lint-and-test]
strategy:
matrix:
include:
@@ -55,9 +59,6 @@ jobs:
with:
go-version: "1.26"
- - name: Run tests
- run: go test ./...
-
- name: Build binary
run: |
CGO_ENABLED=1 go build \
@@ -74,6 +75,7 @@ jobs:
path: "*.tar.gz"
build-windows:
+ needs: [lint-and-test]
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
@@ -88,13 +90,6 @@ jobs:
path-type: inherit
install: mingw-w64-ucrt-x86_64-gcc
- - name: Run tests
- shell: msys2 {0}
- run: |
- which go
- go version
- go test ./...
-
- name: Build binary
shell: msys2 {0}
run: |
@@ -113,7 +108,7 @@ jobs:
path: "*.zip"
release:
- needs: [lint, build-unix, build-windows]
+ needs: [build-unix, build-windows]
runs-on: ubuntu-latest
permissions:
contents: write
diff --git a/internal/tools/tools.go b/internal/tools/tools.go
index c1fc5dcbc..d14edfc88 100644
--- a/internal/tools/tools.go
+++ b/internal/tools/tools.go
@@ -268,7 +268,7 @@ func (s *Server) checkForUpdate() {
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
defer cancel()
- req, err := http.NewRequestWithContext(ctx, "GET", releaseURL, nil)
+ req, err := http.NewRequestWithContext(ctx, "GET", releaseURL, http.NoBody)
if err != nil {
return
}