Skip to content

Commit

Permalink
Make go build/goreleaser work out of the box
Browse files Browse the repository at this point in the history
  • Loading branch information
landakram committed Jun 16, 2020
1 parent cab9c68 commit 4b0fc08
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.envrc
bin
dist
28 changes: 28 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
- go mod download
# you may remove this if you don't need go generate
- go generate ./...
builds:
- env:
- CGO_ENABLED=0
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@


build:
go build -o bin/plaid-cli cmd/plaid-cli/main.go
go build -o bin/plaid-cli
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.14

require (
github.com/fsnotify/fsnotify v1.4.9 // indirect
github.com/manifoldco/promptui v0.7.0 // indirect
github.com/manifoldco/promptui v0.7.0
github.com/mitchellh/mapstructure v1.3.2 // indirect
github.com/pelletier/go-toml v1.8.0 // indirect
github.com/plaid/plaid-go v0.0.0-20200529200923-9627743aa512
Expand Down
File renamed without changes.

0 comments on commit 4b0fc08

Please sign in to comment.