From ccd0160ca4646385dfec8ec39b5ae4ad2afb5af3 Mon Sep 17 00:00:00 2001 From: Johan de Klerk <jdeklerk00@gmail.com> Date: Fri, 5 Nov 2021 15:59:27 +0200 Subject: [PATCH] release notes: added logs --- go.mod | 1 + go.sum | 2 ++ mage_helpers/git.go | 5 +++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 8655a25..1415e66 100644 --- a/go.mod +++ b/go.mod @@ -4,6 +4,7 @@ go 1.17 require ( github.com/AlecAivazis/survey/v2 v2.3.2 + github.com/Masterminds/semver v1.5.0 github.com/aws/aws-sdk-go v1.40.53 github.com/docker/docker v20.10.8+incompatible github.com/magefile/mage v1.11.0 diff --git a/go.sum b/go.sum index 5ef1d42..920780a 100644 --- a/go.sum +++ b/go.sum @@ -40,6 +40,8 @@ github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZ github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= +github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww= +github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= github.com/Microsoft/go-winio v0.4.11/go.mod h1:VhR8bwka0BXejwEJY73c50VrPtXAaKcyvVC4A4RozmA= github.com/Microsoft/go-winio v0.4.14/go.mod h1:qXqCSQ3Xa7+6tgxaGTIe4Kpcdsi+P8jBhyzoq1bpyYA= github.com/Microsoft/go-winio v0.4.15-0.20190919025122-fc70bd9a86b5/go.mod h1:tTuCMEN+UleMWgg9dVx4Hu52b1bJo+59jBh3ajtinzw= diff --git a/mage_helpers/git.go b/mage_helpers/git.go index d43f7d9..4c57941 100644 --- a/mage_helpers/git.go +++ b/mage_helpers/git.go @@ -2,9 +2,9 @@ package mage_helpers import ( "fmt" + "github.com/Masterminds/semver" "os/exec" "strings" - "github.com/Masterminds/semver" ) func HasChanges(previousCommit string, folder string) bool { @@ -76,10 +76,11 @@ func CreateReleaseTag() { newTagName, } cmd = exec.Command("git", commandArgs...) - _, err = cmd.CombinedOutput() + output, err := cmd.CombinedOutput() if err != nil { fmt.Println(err) } + fmt.Println(string(output)) return } -- GitLab