From 188bef458a056ab10f6975bdc6ce8f43390017bc Mon Sep 17 00:00:00 2001 From: Balazs Nagy Date: Sun, 17 Nov 2019 09:20:38 +0100 Subject: [PATCH] rew mage target: release --- CHANGELOG.md | 11 +++++++++-- go.mod | 2 +- go.sum | 5 ++++- magefile.go | 10 ++++++++++ 4 files changed, 24 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b6b614a..e745108 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] -No changes so far. +Added: + +* New mage target: release (runs goshipdone, while enabling publish modules) + +Fixed: + +* Updated to goshipdone v0.3.0 ## [v0.1.2] - Nov 17, 2019 @@ -36,5 +42,6 @@ Added: * http check [Unreleased]: https://github.com/julian7/sensu-base-checks -[v0.1.0]: https://github.com/julian7/sensu-base-checks/releases/tag/v0.1.0 +[v0.1.2]: https://github.com/julian7/sensu-base-checks/releases/tag/v0.1.2 [v0.1.1]: https://github.com/julian7/sensu-base-checks/releases/tag/v0.1.1 +[v0.1.0]: https://github.com/julian7/sensu-base-checks/releases/tag/v0.1.0 diff --git a/go.mod b/go.mod index d12fe9e..494cace 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ require ( github.com/etdub/goparsetime v0.0.0-20160315173935-ea17b0ac3318 // indirect github.com/go-ole/go-ole v1.2.4 // indirect github.com/hako/durafmt v0.0.0-20191009132224-3f39dc1ed9f4 - github.com/julian7/goshipdone v0.2.0 + github.com/julian7/goshipdone v0.3.0 github.com/julian7/sensulib v0.1.3 github.com/karrick/tparse v2.4.2+incompatible github.com/magefile/mage v1.9.0 diff --git a/go.sum b/go.sum index e55a519..870ad77 100644 --- a/go.sum +++ b/go.sum @@ -2,6 +2,8 @@ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03 github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d h1:G0m3OIz70MZUWq3EgK3CesDbo8upS2Vm9/P3FtgI+Jk= github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg= github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= +github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdnnjpJbkM4JQ= +github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= @@ -25,8 +27,9 @@ github.com/hako/durafmt v0.0.0-20191009132224-3f39dc1ed9f4/go.mod h1:5Scbynm8dF1 github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= -github.com/julian7/goshipdone v0.2.0 h1:WmTJ/XmYNgA5bfDTZaZsMxYzSYo+x44eXAGEVjXKLxw= github.com/julian7/goshipdone v0.2.0/go.mod h1:QEYrERF9EZu2JJ33tHVwZyfiE1Q2f/zmt1MRGdoSmAs= +github.com/julian7/goshipdone v0.3.0 h1:pvhhEc5A9joVwLg4/ZphyE9RPnsvih9IacjRb3B5bg0= +github.com/julian7/goshipdone v0.3.0/go.mod h1:aaXTbZKzhSSWBUzPzfpIT3KYuSlILJtSg6Ar6kd10PA= github.com/julian7/sensulib v0.1.3 h1:2QOIxWD9E+n6NJehULAs5YoIJkFeZdqLLmn37/eRwn4= github.com/julian7/sensulib v0.1.3/go.mod h1:S6pWjJ2/F7eRb8ApQZ7gFj9JSQ9SJbu4RKS96+CJkvQ= github.com/karrick/tparse v2.4.2+incompatible h1:+cW306qKAzrASC5XieHkgN7/vPaGKIuK62Q7nI7DIRc= diff --git a/magefile.go b/magefile.go index 7bf6b42..ac02b58 100644 --- a/magefile.go +++ b/magefile.go @@ -4,6 +4,7 @@ package main import ( "fmt" + "os" "os/exec" "github.com/julian7/goshipdone" @@ -28,6 +29,15 @@ func All() error { return nil } +// Release builds and releases package +func Release() { + mg.SerialDeps(flagrel, All) +} + +func flagrel() { + os.Setenv("SKIP_PUBLISH", "false") +} + // Alltests runs all code checks func Alltests() { mg.SerialDeps(Lint, Test, Cover)