Skip to content

Commit 21fc2a0

Browse files
committed
add in goreleaser
1 parent d83d76f commit 21fc2a0

File tree

4 files changed

+60
-97
lines changed

4 files changed

+60
-97
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@
1919

2020
# Go workspace file
2121
go.work
22+
23+
dist/

.goreleaser.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# This is an example .goreleaser.yml file with some sensible defaults.
2+
# Make sure to check the documentation at https://goreleaser.com
3+
before:
4+
hooks:
5+
# You may remove this if you don't use go modules.
6+
- go mod tidy
7+
builds:
8+
- env:
9+
- CGO_ENABLED=0
10+
goos:
11+
- linux
12+
- windows
13+
- darwin
14+
15+
archives:
16+
- format: tar.gz
17+
# this name template makes the OS and Arch compatible with the results of uname.
18+
name_template: >-
19+
{{ .ProjectName }}_
20+
{{- title .Os }}_
21+
{{- if eq .Arch "amd64" }}x86_64
22+
{{- else if eq .Arch "386" }}i386
23+
{{- else }}{{ .Arch }}{{ end }}
24+
{{- if .Arm }}v{{ .Arm }}{{ end }}
25+
# use zip for windows archives
26+
format_overrides:
27+
- goos: windows
28+
format: zip
29+
checksum:
30+
name_template: 'checksums.txt'
31+
snapshot:
32+
name_template: "{{ incpatch .Version }}-next"
33+
changelog:
34+
sort: asc
35+
filters:
36+
exclude:
37+
- '^docs:'
38+
- '^test:'
39+
40+
# The lines beneath this are called `modelines`. See `:help modeline`
41+
# Feel free to remove those if you don't want/use them.
42+
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
43+
# vim: set ts=2 sw=2 tw=0 fo=cnqoj

go.mod

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,61 +4,39 @@ go 1.20
44

55
require github.com/spf13/cobra v1.7.0
66

7-
require github.com/zricethezav/gitleaks/v8 v8.17.0
7+
require (
8+
github.com/spf13/viper v1.8.1
9+
github.com/zricethezav/gitleaks/v8 v8.17.0
10+
)
811

912
require (
10-
github.com/BurntSushi/toml v0.3.1 // indirect
1113
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
1214
github.com/charmbracelet/lipgloss v0.5.0 // indirect
13-
github.com/emirpasic/gods v1.12.0 // indirect
1415
github.com/fatih/semgroup v1.2.0 // indirect
1516
github.com/fsnotify/fsnotify v1.4.9 // indirect
1617
github.com/gitleaks/go-gitdiff v0.8.0 // indirect
17-
github.com/golang/protobuf v1.5.2 // indirect
18-
github.com/google/go-github v15.0.0+incompatible // indirect
19-
github.com/google/go-querystring v1.0.0 // indirect
2018
github.com/h2non/filetype v1.1.3 // indirect
21-
github.com/hako/durafmt v0.0.0-20180520121703-7b7ae1e72ead // indirect
2219
github.com/hashicorp/hcl v1.0.0 // indirect
2320
github.com/inconshreveable/mousetrap v1.1.0 // indirect
24-
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
25-
github.com/jessevdk/go-flags v1.4.0 // indirect
26-
github.com/kevinburke/ssh_config v0.0.0-20180830205328-81db2a75821e // indirect
2721
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
2822
github.com/magiconair/properties v1.8.5 // indirect
2923
github.com/mattn/go-isatty v0.0.17 // indirect
3024
github.com/mattn/go-runewidth v0.0.14 // indirect
31-
github.com/mitchellh/go-homedir v1.0.0 // indirect
3225
github.com/mitchellh/mapstructure v1.4.1 // indirect
3326
github.com/muesli/reflow v0.2.1-0.20210115123740-9e1d0d53df68 // indirect
3427
github.com/muesli/termenv v0.15.1 // indirect
35-
github.com/pelletier/go-buffruneio v0.2.0 // indirect
3628
github.com/pelletier/go-toml v1.9.3 // indirect
3729
github.com/petar-dambovaliev/aho-corasick v0.0.0-20211021192214-5ab2d9280aa9 // indirect
3830
github.com/rivo/uniseg v0.2.0 // indirect
3931
github.com/rs/zerolog v1.26.1 // indirect
40-
github.com/sergi/go-diff v1.0.0 // indirect
41-
github.com/sirupsen/logrus v1.0.6 // indirect
4232
github.com/spf13/afero v1.6.0 // indirect
4333
github.com/spf13/cast v1.3.1 // indirect
4434
github.com/spf13/jwalterweatherman v1.1.0 // indirect
4535
github.com/spf13/pflag v1.0.5 // indirect
46-
github.com/spf13/viper v1.8.1 // indirect
47-
github.com/src-d/gcfg v1.4.0 // indirect
4836
github.com/subosito/gotenv v1.2.0 // indirect
49-
github.com/xanzy/go-gitlab v0.11.3 // indirect
50-
github.com/xanzy/ssh-agent v0.2.0 // indirect
51-
github.com/zricethezav/gitleaks v1.25.1 // indirect
52-
golang.org/x/crypto v0.0.0-20211215165025-cf75a172585e // indirect
53-
golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d // indirect
54-
golang.org/x/oauth2 v0.0.0-20210402161424-2e8d93401602 // indirect
5537
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
5638
golang.org/x/sys v0.6.0 // indirect
5739
golang.org/x/text v0.3.6 // indirect
58-
google.golang.org/appengine v1.6.7 // indirect
5940
gopkg.in/ini.v1 v1.62.0 // indirect
60-
gopkg.in/src-d/go-billy.v4 v4.3.0 // indirect
61-
gopkg.in/src-d/go-git.v4 v4.9.1 // indirect
62-
gopkg.in/warnings.v0 v0.1.2 // indirect
6341
gopkg.in/yaml.v2 v2.4.0 // indirect
6442
)

0 commit comments

Comments
 (0)