Skip to content

Commit d4190d0

Browse files
authored
feat: add generic install when (#345)
Co-authored-by: Rick <[email protected]>
1 parent 6c591a1 commit d4190d0

File tree

5 files changed

+147
-48
lines changed

5 files changed

+147
-48
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ build: fmt test
22
export GOPROXY=https://goproxy.io
33
CGO_ENABLE=0 go build -ldflags "-w -s" -o bin/hd
44

5-
build-linux: fmt lint
5+
build-linux: fmt lint build-linux-no-check
6+
build-linux-no-check:
67
export GOPROXY=https://goproxy.io
78
CGO_ENABLE=0 GOOS=linux go build -ldflags "-w -s" -o bin/linux/hd
89
upx bin/linux/hd

go.mod

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@ require (
1717
github.com/spf13/cobra v1.2.1
1818
github.com/spf13/pflag v1.0.5
1919
github.com/spf13/viper v1.9.0
20-
github.com/stretchr/testify v1.7.0
20+
github.com/stretchr/testify v1.8.1
2121
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8
22-
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
22+
gopkg.in/yaml.v3 v3.0.1
2323
)
2424

25-
require github.com/creack/pty v1.1.17
26-
27-
require github.com/prometheus/client_golang v1.11.1 // indirect
25+
require (
26+
github.com/antonmedv/expr v1.11.1
27+
github.com/creack/pty v1.1.17
28+
)
2829

2930
require (
3031
github.com/Microsoft/go-winio v0.4.16 // indirect

0 commit comments

Comments
 (0)