Skip to content

Commit

Permalink
use Go modules instead of dept
Browse files Browse the repository at this point in the history
  • Loading branch information
ktr0731 committed Dec 25, 2020
1 parent 821eba4 commit bf4c7c2
Show file tree
Hide file tree
Showing 6 changed files with 1,058 additions and 341 deletions.
12 changes: 4 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
SHELL := /bin/bash

export PATH := $(PWD)/_tools:$(PATH)
export GOBIN := $(PWD)/_tools
export PATH := $(GOBIN):$(PATH)
export GO111MODULE := on

.PHONY: generate
generate:
go generate ./...

.PHONY: dept
dept:
@go get github.com/ktr0731/dept@v0.1.2
@go build -o _tools/dept github.com/ktr0731/dept

.PHONY: tools
tools: dept
@dept -v build
tools:
@cat tools/tools.go | grep -E '^\s*_\s.*' | awk '{ print $$2 }' | xargs go install

.PHONY: build
build:
Expand Down
8 changes: 6 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
module github.com/ktr0731/go-fuzzyfinder

require (
github.com/Songmu/gocredits v0.2.0
github.com/gdamore/tcell/v2 v2.0.0
github.com/golangci/golangci-lint v1.33.0
github.com/google/go-cmp v0.5.4
github.com/google/gofuzz v1.2.0
github.com/goreleaser/goreleaser v0.149.0 // indirect
github.com/kisielk/godepgraph v0.0.0-20190626013829-57a7e4a651a9 // indirect
github.com/ktr0731/bump v0.1.0 // indirect
github.com/matryer/moq v0.1.4 // indirect
github.com/mattn/go-runewidth v0.0.9
github.com/micmonay/keybd_event v1.1.0
github.com/nsf/termbox-go v0.0.0-20201124104050-ed494de23a00
github.com/pkg/errors v0.9.1
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f // indirect
golang.org/x/text v0.3.3 // indirect
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
)

Expand Down
Loading

0 comments on commit bf4c7c2

Please sign in to comment.