From e32ed617711a3838c721dca3b67bff9c0e1c3ec7 Mon Sep 17 00:00:00 2001 From: teru Date: Wed, 13 Dec 2017 15:07:44 +0900 Subject: [PATCH 1/4] Now show runtime version in `mailfull --version` --- cmd/mailfull/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/mailfull/main.go b/cmd/mailfull/main.go index ca74d78..4a4493d 100644 --- a/cmd/mailfull/main.go +++ b/cmd/mailfull/main.go @@ -9,6 +9,7 @@ import ( "fmt" "os" "path/filepath" + "runtime" "github.com/directorz/mailfull-go" "github.com/directorz/mailfull-go/cmd" @@ -22,8 +23,9 @@ var ( func init() { if gittag != "" { - version = version + "-" + gittag + version += "-" + gittag } + version += fmt.Sprintf(" (built with %s)", runtime.Version()) } func main() { From f618eb24e65a63d91fa0a017ab8034920e968e74 Mon Sep 17 00:00:00 2001 From: teru Date: Wed, 13 Dec 2017 15:12:07 +0900 Subject: [PATCH 2/4] Added `-vendor-only` flag --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 407c5ef..21151e1 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ $(DIR_BUILD)/bin/$(THIS_GOOS)_$(THIS_GOARCH)/dep: dep: $(DIR_BUILD)/bin/$(THIS_GOOS)_$(THIS_GOARCH)/dep installdeps: dep - $(DIR_BUILD)/bin/$(THIS_GOOS)_$(THIS_GOARCH)/dep ensure -v + $(DIR_BUILD)/bin/$(THIS_GOOS)_$(THIS_GOARCH)/dep ensure -v -vendor-only build: go build -v -i -ldflags "-X main.gittag=$(GITTAG)" -o $(DIR_BUILD)/mailfull_$(GOOS)_$(GOARCH)/mailfull cmd/mailfull/*.go From 188be4c3e8da5373eb8c2e28b7ea715f6e36bcbf Mon Sep 17 00:00:00 2001 From: teru Date: Wed, 13 Dec 2017 15:15:54 +0900 Subject: [PATCH 3/4] Update libraries --- Gopkg.lock | 33 +++++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/Gopkg.lock b/Gopkg.lock index d3be0b9..dbbed48 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -4,19 +4,32 @@ [[projects]] name = "github.com/BurntSushi/toml" packages = ["."] - revision = "99064174e013895bbd9b025c31100bd1d9b590ca" + revision = "b26d9c308763d68093482582cea63d69be07a0f0" version = "v0.3.0" [[projects]] branch = "master" name = "github.com/armon/go-radix" packages = ["."] - revision = "4239b77079c7b5d1243b7b4736304ce8ddb6f0f2" + revision = "1fca145dffbcaa8fe914309b1ec0cfc67500fe61" [[projects]] name = "github.com/bgentry/speakeasy" packages = ["."] - revision = "a1ccbf2c40dfc8ce514b5c5c6e6d1429ea6880da" + revision = "4aabc24848ce5fd31929f7d1e4ea74d3709c14cd" + version = "v0.1.0" + +[[projects]] + branch = "master" + name = "github.com/hashicorp/errwrap" + packages = ["."] + revision = "7554cd9344cec97297fa6649b055a8c98c2a1e55" + +[[projects]] + branch = "master" + name = "github.com/hashicorp/go-multierror" + packages = ["."] + revision = "b7773ae218740a7be65057fc60b366a49b538a44" [[projects]] branch = "master" @@ -27,18 +40,26 @@ [[projects]] name = "github.com/mattn/go-isatty" packages = ["."] - revision = "66b8e73f3f5cda9f96b69efd03dd3d7fc4a5cdb8" + revision = "0360b2af4f38e8d38c7fce2a9f4e702702d73a39" + version = "v0.0.3" [[projects]] branch = "master" name = "github.com/mitchellh/cli" packages = ["."] - revision = "fcf521421aa29bde1d93b6920dfce826d7932208" + revision = "33edc47170b5df54d2588696d590c5e20ee583fe" [[projects]] + name = "github.com/posener/complete" + packages = [".","cmd","cmd/install","match"] + revision = "dc2bc5a81accba8782bebea28628224643a8286a" + version = "v1.1" + +[[projects]] + branch = "master" name = "golang.org/x/sys" packages = ["unix"] - revision = "8f0908ab3b2457e2e15403d3697c9ef5cb4b57a9" + revision = "53aa286056ef226755cd898109dbcdaba8ac0b81" [solve-meta] analyzer-name = "dep" From e32523d0b2a0f6320a62a0218bb23050feaea0ad Mon Sep 17 00:00:00 2001 From: teru Date: Wed, 13 Dec 2017 15:16:35 +0900 Subject: [PATCH 4/4] Bump version to v1.0.1 --- version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.go b/version.go index 383d0a1..478faa1 100644 --- a/version.go +++ b/version.go @@ -1,4 +1,4 @@ package mailfull // Version is a version number. -const Version = "v1.0.0" +const Version = "v1.0.1"