Skip to content

Commit

Permalink
refactor(tmpl): go-bindata use go install instead of go get
Browse files Browse the repository at this point in the history
  • Loading branch information
cage1016 committed Oct 22, 2023
1 parent 3f862d5 commit d850d60
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
32 changes: 16 additions & 16 deletions template/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion template/tmpl/makefile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ LDFLAGS ?= -X {{.GoModPackage}}/cmd.EnabledAutoUpdate=$(ENABLED_AUTO_UPDATE)
HAVE_GO_BINDATA := $(shell command -v go-bindata 2> /dev/null)
generate: ## go generate
ifndef HAVE_GO_BINDATA
@echo "requires 'go-bindata' (go get -u github.com/kevinburke/go-bindata/go-bindata)"
@echo "requires 'go-bindata' (go install github.com/go-bindata/go-bindata/go-bindata@latest)"
@exit 1 # fail
else
go generate ./...
Expand Down

0 comments on commit d850d60

Please sign in to comment.