From 4c057228529f40974eeb2a0014e62ca1a79c6cbb Mon Sep 17 00:00:00 2001 From: Jeremy Collins Date: Fri, 17 Oct 2025 08:26:51 -0400 Subject: [PATCH 1/3] Fix goreleaser main path and add dry run to PR checks --- .github/workflows/pr.yml | 14 ++++++++++++++ .goreleaser.yml | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 0727432..7b3d0d6 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -23,6 +23,20 @@ jobs: - name: Run tests run: go test -v ./... + - name: Test goreleaser config + uses: goreleaser/goreleaser-action@v6 + with: + distribution: goreleaser + version: '~> v2' + args: check + + - name: Test release build (dry run) + uses: goreleaser/goreleaser-action@v6 + with: + distribution: goreleaser + version: '~> v2' + args: build --snapshot --clean --single-target + build-docs: name: Build Documentation runs-on: ubuntu-latest diff --git a/.goreleaser.yml b/.goreleaser.yml index 5a5a4f1..08112c3 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -8,7 +8,7 @@ before: builds: - id: tekmetric-mcp - main: ./main.go + main: ./cmd/tekmetric-mcp binary: tekmetric-mcp env: - CGO_ENABLED=0 From 034dc44d7293e3ccee913d32f9ba71668370d2e6 Mon Sep 17 00:00:00 2001 From: Jeremy Collins Date: Fri, 17 Oct 2025 08:29:43 -0400 Subject: [PATCH 2/3] Update goreleaser config to use non-deprecated format syntax --- .goreleaser.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 08112c3..6a4c239 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -27,9 +27,7 @@ builds: archives: - id: default - format_overrides: - - goos: windows - format: zip + format: "{{ if eq .Os \"windows\" }}zip{{ else }}tar.gz{{ end }}" name_template: >- {{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }} files: From 3dc2d2d20b9b697c121a8af1c9ef555dd021e9d5 Mon Sep 17 00:00:00 2001 From: Jeremy Collins Date: Fri, 17 Oct 2025 08:32:58 -0400 Subject: [PATCH 3/3] Fix goreleaser config to use non-deprecated formats syntax --- .goreleaser.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 6a4c239..4107040 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -27,7 +27,10 @@ builds: archives: - id: default - format: "{{ if eq .Os \"windows\" }}zip{{ else }}tar.gz{{ end }}" + formats: ["tar.gz"] + format_overrides: + - goos: windows + formats: ["zip"] name_template: >- {{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }} files: