Skip to content

Commit

Permalink
clean deps
Browse files Browse the repository at this point in the history
  • Loading branch information
markbates committed Mar 8, 2020
1 parent 89a63eb commit c8222b4
Show file tree
Hide file tree
Showing 4 changed files with 158 additions and 128 deletions.
44 changes: 3 additions & 41 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,66 +1,28 @@
TAGS ?= ""
GO_BIN ?= "go"

install: packr
install:
$(GO_BIN) install -tags ${TAGS} -v ./.
make tidy

tidy:
ifeq ($(GO111MODULE),on)
$(GO_BIN) mod tidy
else
echo skipping go mod tidy
endif

deps:
$(GO_BIN) get -tags ${TAGS} -t ./...
make tidy

build: packr
build:
$(GO_BIN) build -v .
make tidy

test: packr
test:
$(GO_BIN) test -cover -tags ${TAGS} ./...
make tidy

ci-deps: packr
$(GO_BIN) get -tags ${TAGS} -t ./...

ci-test: packr
$(GO_BIN) test -tags ${TAGS} -race ./...

lint:
go get github.com/golangci/golangci-lint/cmd/golangci-lint
golangci-lint run --enable-all
make tidy

update:
ifeq ($(GO111MODULE),on)
rm go.*
$(GO_BIN) mod init
$(GO_BIN) mod tidy
else
$(GO_BIN) get -u -tags ${TAGS}
endif
make test
make install
make tidy

release-test: packr
$(GO_BIN) test -tags ${TAGS} -race ./...
make tidy

release:
$(GO_BIN) get github.com/gobuffalo/release
make tidy
release -y -f version.go
make tidy

packr:
$(GO_BIN) get github.com/gobuffalo/packr/v2/packr2
packr2
make tidy



13 changes: 3 additions & 10 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,12 @@ go 1.13
require (
github.com/Masterminds/semver v1.5.0
github.com/fatih/color v1.9.0
github.com/gobuffalo/envy v1.8.1 // indirect
github.com/gobuffalo/genny/v2 v2.0.5
github.com/gobuffalo/here v0.6.0
github.com/gobuffalo/logger v1.0.3
github.com/gobuffalo/meta v0.2.1
github.com/gobuffalo/packr/v2 v2.7.1
github.com/gobuffalo/meta v0.3.0
github.com/gobuffalo/packr/v2 v2.8.0
github.com/gobuffalo/plush/v4 v4.0.0
github.com/mattn/go-isatty v0.0.12 // indirect
github.com/rogpeppe/go-internal v1.5.2 // indirect
github.com/sergi/go-diff v1.1.0 // indirect
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.4.0
golang.org/x/crypto v0.0.0-20200128174031-69ecbb4d6d5d // indirect
golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa // indirect
golang.org/x/sys v0.0.0-20200124204421-9fbb57f87de9 // indirect
github.com/stretchr/testify v1.5.1
)
Loading

0 comments on commit c8222b4

Please sign in to comment.