Skip to content

Commit 3ebd82c

Browse files
authored
Merge pull request #328 from AdamKobi/goreleaser-deprecation-fixes
chore: update goreleaser config
2 parents 1b8d9f7 + fc7adca commit 3ebd82c

1 file changed

Lines changed: 34 additions & 42 deletions

File tree

.goreleaser.yml

Lines changed: 34 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
# This is an example .goreleaser.yml file with some sane defaults.
2-
# Make sure to check the documentation at http://goreleaser.com
31
version: 2
2+
43
before:
54
hooks:
6-
# You may remove this if you don't use go modules.
75
- go mod tidy
8-
# - ./scripts/install-kcl-lsp-all.sh
96

10-
# .goreleaser.yml
117
builds:
128
- id: default
139
env:
@@ -22,55 +18,51 @@ builds:
2218
- amd64
2319
- arm64
2420
ldflags:
25-
- "-X kcl-lang.io/cli/pkg/version.version={{.Version}}"
21+
- "-X kcl-lang.io/cli/pkg/version.version={{ .Version }}"
2622

2723
archives:
2824
- id: default
29-
builds:
25+
ids:
3026
- default
3127
name_template: "kcl-v{{ .Version }}-{{ .Os }}-{{ .Arch }}"
3228
format_overrides:
3329
- goos: windows
34-
format: zip
35-
# Put kcl-language-server binaries into add to the kcl archive.
36-
# files:
37-
# - ./bin/kcl-lsp-v{{ .Version }}-{{ .Os }}-{{ .Arch }}/*
30+
formats:
31+
- zip
3832

39-
brews:
40-
- tap:
33+
homebrew_casks:
34+
- name: kcl
35+
ids:
36+
- default
37+
binaries:
38+
- kcl
39+
repository:
4140
owner: kcl-lang
4241
name: homebrew-tap
43-
name: kcl
44-
url_template: "https://github.com/kcl-lang/cli/releases/download/{{ .Tag }}/kcl-v{{ .Version }}-{{ .Os }}-{{ .Arch }}.tar.gz"
45-
download_strategy: CurlDownloadStrategy
46-
# Git author used to commit to the repository.
47-
# Defaults are shown.
42+
branch: main
43+
directory: Casks
44+
homepage: "https://github.com/kcl-lang/kcl"
45+
description: "KCL Command Line Interface"
46+
license: "Apache-2.0"
4847
commit_author:
4948
name: GoReleaser Bot
5049
email: goreleaser@carlosbecker.com
51-
folder: HomebrewFormula
50+
url:
51+
verified: github.com/kcl-lang/cli
52+
53+
scoops:
54+
- name: kcl
55+
url_template: "https://github.com/kcl-lang/cli/releases/download/{{ .Tag }}/kcl-v{{ .Version }}-{{ .Os }}-{{ .Arch }}.zip"
56+
repository:
57+
owner: kcl-lang
58+
name: scoop-bucket
59+
branch: main
60+
token: "{{ .Env.GITHUB_TOKEN }}"
61+
directory: Scoops
62+
commit_author:
63+
name: goreleaserbot
64+
email: bot@goreleaser.com
65+
commit_msg_template: "Scoop update for kcl version {{ .Tag }}"
5266
homepage: "https://github.com/kcl-lang/kcl"
5367
description: "KCL Command Line Interface"
54-
dependencies:
55-
- name: "kcl-lsp"
56-
license: "Apache License"
57-
skip_upload: false
58-
test: |
59-
system "#{bin}/kcl version"
60-
61-
scoop:
62-
name: kcl
63-
url_template: "https://github.com/kcl-lang/cli/releases/download/{{ .Tag }}/kcl-v{{ .Version }}-{{ .Os }}-{{ .Arch }}.zip"
64-
bucket:
65-
owner: kcl-lang
66-
name: scoop-bucket
67-
branch: main
68-
token: "{{ .Env.GITHUB_TOKEN }}"
69-
folder: Scoops
70-
commit_author:
71-
name: goreleaserbot
72-
email: bot@goreleaser.com
73-
commit_msg_template: "Scoop update for kcl version {{ .Tag }}"
74-
homepage: "http://github.com/kcl-lang/kcl"
75-
description: "KCL Command Line Interface"
76-
license: Apache License 2.0
68+
license: "Apache-2.0"

0 commit comments

Comments
 (0)