Switch to vgo

This commit is contained in:
Drew DeVault 2018-03-02 09:27:27 -05:00
parent cea98463c9
commit 3836d240c9
4 changed files with 10 additions and 25 deletions

2
.gitignore vendored
View file

@ -1,3 +1,3 @@
.go
/aerc
/aerc2
log

View file

@ -1,24 +0,0 @@
PKGNAME = git.sr.ht/~sircmpwn/aerc2
GOPATH = $(shell pwd)/.go
PKGPATH = .go/src/$(PKGNAME)
all: aerc
.go:
mkdir -p $(dir $(PKGPATH))
ln -fs $(shell dirname $(GOPATH)) $(PKGPATH)
get: .go
env GOPATH=$(GOPATH) go get -d ./...
test: .go
env GOPATH=$(GOPATH) go test ./...
aerc: .go
env GOPATH=$(GOPATH) go build -o $@ ./cmd/$@
clean:
rm -rf .go aerc
.PHONY: aerc get test clean

9
go.mod Normal file
View file

@ -0,0 +1,9 @@
module "git.sr.ht/~sircmpwn/aerc2"
require (
"github.com/go-ini/ini" v1.32.0
"github.com/kyoh86/xdg" v0.0.0-20171127140545-8db68a8ea76a
"github.com/mattn/go-isatty" v0.0.3
"github.com/mattn/go-runewidth" v0.0.2
"github.com/nsf/termbox-go" v0.0.0-20180129072728-88b7b944be8b
)