Skip to content

Commit 01a7e6b

Browse files
committed
goreleaser
Signed-off-by: tianyang ni <[email protected]>
1 parent 9325fe7 commit 01a7e6b

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

.gitignore

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

1414
# Dependency directories (remove the comment below to include it)
1515
vendor/
16+
17+
dist/

.goreleaser.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
before:
2+
hooks:
3+
- go mod tidy
4+
builds:
5+
- main: ./cmd/iftree
6+
env:
7+
- CGO_ENABLED=0
8+
goos:
9+
- linux
10+
# - windows
11+
# - darwin
12+
archives:
13+
- replacements:
14+
darwin: Darwin
15+
linux: Linux
16+
windows: Windows
17+
386: i386
18+
amd64: x86_64
19+
checksum:
20+
name_template: 'checksums.txt'
21+
snapshot:
22+
name_template: "{{ incpatch .Version }}-next"
23+
changelog:
24+
sort: asc
25+
filters:
26+
exclude:
27+
- '^docs:'
28+
- '^test:'

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ require (
88
github.com/containerd/nerdctl v0.22.0
99
github.com/fatih/color v1.13.0
1010
github.com/jedib0t/go-pretty/v6 v6.3.5
11+
github.com/lucasb-eyer/go-colorful v1.2.0
1112
github.com/pkg/errors v0.9.1
1213
github.com/sirupsen/logrus v1.9.0
1314
github.com/spf13/pflag v1.0.5
@@ -25,7 +26,6 @@ require (
2526
github.com/gogo/protobuf v1.3.2 // indirect
2627
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
2728
github.com/golang/protobuf v1.5.2 // indirect
28-
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
2929
github.com/mattn/go-colorable v0.1.12 // indirect
3030
github.com/mattn/go-isatty v0.0.14 // indirect
3131
github.com/mattn/go-runewidth v0.0.13 // indirect

0 commit comments

Comments
 (0)