Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 6 additions & 13 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com

# The lines below are called `modelines`. See `:help modeline`
# Feel free to remove those if you don't want/need to use them.
# GoReleaser v2 config for execspansql cross-platform CLI releases.
# Triggered by .github/workflows/goreleaser.yml on tag push (goreleaser-action@v6).
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj

version: 2

before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...

builds:
- env:
Expand All @@ -24,19 +17,19 @@ builds:
- darwin

archives:
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of `uname`.
- formats:
- tar.gz
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
formats:
- zip

changelog:
sort: asc
Expand Down
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ For fast local checks without Docker dependency, limit to package-level tests as

- CI workflows include lint and Go build/test under `.github/workflows/`.
- Lint workflow uses `golangci-lint`.
- `ko` publish workflow builds on tag pushes for `v*`.
- `.goreleaser.yaml` exists and should be treated as release automation metadata.
- `ko` publish workflow builds container images on tag pushes for `v*`.
- GoReleaser (`.goreleaser.yaml`, v2 schema) publishes cross-platform CLI archives via `.github/workflows/goreleaser.yml` on any tag push; `before.hooks` runs `go mod tidy` only (no `go:generate` in this repo).
- Release/packaging behavior follows `go.mod` Go version pin (`go 1.25.0`).

## Repository hygiene
Expand Down
Loading