Skip to content

Commit

Permalink
fix(goreleaser): add go mod tidy before build
Browse files Browse the repository at this point in the history
  • Loading branch information
AJ Bond committed Sep 9, 2019
1 parent e0a6471 commit f812093
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
project_name: kubectl-trace
before:
hooks:
- go mod tidy
builds:
- id: "kubectl-trace"
goos:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ ${trace_runner}:

.PHONY: cross
cross:
IMAGE_NAME=$(IMAGE_NAME) goreleaser --snapshot --rm-dist
IMAGE_NAME=$(IMAGE_NAME) GO111MODULE=on goreleaser --snapshot --rm-dist

.PHONY: clean
clean:
Expand Down

0 comments on commit f812093

Please sign in to comment.