diff --git a/go.mod b/go.mod index 8655a251248db3a0c8e9554304681dccd35a041d..1415e66fb65b0286b9a997a7c5d7430f658a1d38 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 5ef1d4211f6fa28ab95dea3301169777d7ddf100..920780aac886a4a003672f1e913fb4c9755c248b 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 d43f7d907d085c6776f4a1c4fa2bfecc09b9a445..4c57941eb96b98c98970b8265dcfaa17771aef15 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 }