File tree Expand file tree Collapse file tree 3 files changed +34
-1
lines changed Expand file tree Collapse file tree 3 files changed +34
-1
lines changed Original file line number Diff line number Diff line change 25
25
/testdata
26
26
src-fingerprint
27
27
.cache_ggshield
28
+ dist /
Original file line number Diff line number Diff line change
1
+ # This is an example .goreleaser.yml file with some sane defaults.
2
+ # Make sure to check the documentation at http://goreleaser.com
3
+ before :
4
+ hooks :
5
+ - go mod tidy
6
+ builds :
7
+ - env :
8
+ - CGO_ENABLED=0
9
+ goos :
10
+ - linux
11
+ - windows
12
+ - darwin
13
+ main : ./cmd/src-fingerprint
14
+ # Default build flags is `-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser`.
15
+
16
+ archives :
17
+ - replacements :
18
+ darwin : Darwin
19
+ linux : Linux
20
+ windows : Windows
21
+ 386 : i386
22
+ amd64 : x86_64
23
+ checksum :
24
+ name_template : " checksums.txt"
25
+ snapshot :
26
+ name_template : " {{ .Tag }}-next"
27
+ changelog :
28
+ sort : asc
29
+ filters :
30
+ exclude :
31
+ - " ^docs:"
32
+ - " ^test:"
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ BIN := src-fingerprint
6
6
GO ?= go
7
7
GOFLAGS := -v
8
8
EXTRA_GOFLAGS ?=
9
- LDFLAGS := $(LDFLAGS )
9
+ LDFLAGS := $(LDFLAGS ) -X main.version=dev -X main.builtBy=makefile `
10
10
SOURCES ? = $( shell find ./* -name " *.go" -type f ! -path " ./vendor/*" )
11
11
12
12
.PHONY: default
You can’t perform that action at this time.
0 commit comments