Skip to content

Commit 4b0fc08

Browse files
committed
Make go build/goreleaser work out of the box
1 parent cab9c68 commit 4b0fc08

File tree

5 files changed

+31
-4
lines changed

5 files changed

+31
-4
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.envrc
22
bin
3+
dist

.goreleaser.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This is an example goreleaser.yaml file with some sane defaults.
2+
# Make sure to check the documentation at http://goreleaser.com
3+
before:
4+
hooks:
5+
# You may remove this if you don't use go modules.
6+
- go mod download
7+
# you may remove this if you don't need go generate
8+
- go generate ./...
9+
builds:
10+
- env:
11+
- CGO_ENABLED=0
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: "{{ .Tag }}-next"
23+
changelog:
24+
sort: asc
25+
filters:
26+
exclude:
27+
- '^docs:'
28+
- '^test:'

Makefile

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
2-
31
build:
4-
go build -o bin/plaid-cli cmd/plaid-cli/main.go
2+
go build -o bin/plaid-cli

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.14
44

55
require (
66
github.com/fsnotify/fsnotify v1.4.9 // indirect
7-
github.com/manifoldco/promptui v0.7.0 // indirect
7+
github.com/manifoldco/promptui v0.7.0
88
github.com/mitchellh/mapstructure v1.3.2 // indirect
99
github.com/pelletier/go-toml v1.8.0 // indirect
1010
github.com/plaid/plaid-go v0.0.0-20200529200923-9627743aa512

cmd/plaid-cli/main.go main.go

File renamed without changes.

0 commit comments

Comments
 (0)