Skip to content

Commit de18aac

Browse files
authored
Merge pull request #10 from maruina/fix-deploy
Add go-mod-tidy
2 parents f26e2b5 + e403c2a commit de18aac

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Build customization
22
builds:
3-
- main: ./cmd/infrabin/main.go
3+
- main: ./cmd/go-infrabin/main.go
44
binary: go-infrabin
55
goos:
66
- windows

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
deploy:
3333
- provider: script
3434
skip_cleanup: true
35-
script: curl -sL https://git.io/goreleaser | bash
35+
script: make go-mod-tidy && curl -sL https://git.io/goreleaser | bash
3636
on:
3737
tags: true
3838
condition: "$TRAVIS_OS_NAME = linux"

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,11 @@ dep-ci: dep
1919
go get golang.org/x/tools/cmd/cover
2020
go get github.com/mattn/goveralls
2121

22+
# Clean go.mod
23+
go-mod-tidy:
24+
@go mod tidy -v
25+
@git diff HEAD
26+
@git diff-index --quiet HEAD
27+
2228
clean:
2329
rm -f $(BINARY_NAME)

0 commit comments

Comments
 (0)