Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.

Commit 4bdf25a

Browse files
kwentclaude
andcommitted
chore: migrate goreleaser config to v2
- Add version: 2 for goreleaser v2 compatibility - Migrate brews → homebrew_casks (brews deprecated) - Change directory: Formula → Casks - Replace install block with binaries list - Add token for homebrew-tap authentication - Add ignore rules for Windows/Darwin ARM (broken targets) - Add archives section with ARM version suffix - Add checksum, snapshot, changelog sections - Add ldflags for version/commit/date injection - Rename .goreleaser.yml → .goreleaser.yaml 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent a4a5d70 commit 4bdf25a

2 files changed

Lines changed: 100 additions & 41 deletions

File tree

.goreleaser.yaml

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
version: 2
2+
3+
project_name: rootly
4+
5+
before:
6+
hooks:
7+
- go mod tidy
8+
9+
builds:
10+
- id: rootly
11+
main: ./cmd/rootly
12+
binary: rootly
13+
env:
14+
- CGO_ENABLED=0
15+
flags:
16+
- -tags=netgo
17+
- -a
18+
- -v
19+
goos:
20+
- linux
21+
- darwin
22+
- windows
23+
goarch:
24+
- amd64
25+
- arm64
26+
- arm
27+
goarm:
28+
- "6"
29+
- "7"
30+
ignore:
31+
- goos: windows
32+
goarch: arm
33+
- goos: darwin
34+
goarch: arm
35+
ldflags:
36+
- -s -w
37+
- -extldflags "-static"
38+
- -X main.version={{.Version}}
39+
- -X main.commit={{.Commit}}
40+
- -X main.date={{.Date}}
41+
42+
archives:
43+
- id: default
44+
formats:
45+
- tar.gz
46+
format_overrides:
47+
- goos: windows
48+
formats:
49+
- zip
50+
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}"
51+
files:
52+
- README.md
53+
- LICENSE
54+
55+
checksum:
56+
name_template: "checksums.txt"
57+
58+
snapshot:
59+
version_template: "{{ incpatch .Version }}-next"
60+
61+
changelog:
62+
sort: asc
63+
use: github
64+
filters:
65+
exclude:
66+
- "^docs:"
67+
- "^test:"
68+
- "^chore:"
69+
- "^ci:"
70+
- Merge pull request
71+
- Merge branch
72+
groups:
73+
- title: Features
74+
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
75+
order: 0
76+
- title: Bug Fixes
77+
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
78+
order: 1
79+
- title: Other
80+
order: 999
81+
82+
homebrew_casks:
83+
- repository:
84+
owner: rootlyhq
85+
name: homebrew-tap
86+
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
87+
directory: Casks
88+
homepage: "https://rootly.com"
89+
description: "Command line tool for rootly.com"
90+
binaries:
91+
- rootly
92+
93+
release:
94+
github:
95+
owner: rootlyhq
96+
name: cli
97+
draft: false
98+
prerelease: auto
99+
mode: replace
100+
name_template: "v{{ .Version }}"

.goreleaser.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)