From 3836d240c9aa26615e7d768a57436d171edc3831 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 2 Mar 2018 09:27:27 -0500 Subject: [PATCH] Switch to vgo --- .gitignore | 2 +- Makefile | 24 ------------------------ cmd/aerc/main.go => aerc.go | 0 go.mod | 9 +++++++++ 4 files changed, 10 insertions(+), 25 deletions(-) delete mode 100644 Makefile rename cmd/aerc/main.go => aerc.go (100%) create mode 100644 go.mod diff --git a/.gitignore b/.gitignore index 144e4e5..cc49a55 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ .go -/aerc +/aerc2 log diff --git a/Makefile b/Makefile deleted file mode 100644 index 0386860..0000000 --- a/Makefile +++ /dev/null @@ -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 diff --git a/cmd/aerc/main.go b/aerc.go similarity index 100% rename from cmd/aerc/main.go rename to aerc.go diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..cc52cd8 --- /dev/null +++ b/go.mod @@ -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 +)