From 5e635873adb191988ebb7ac2d115efd602c31313 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 7 Nov 2024 02:55:22 -0600 Subject: [PATCH] try to fix self publish of guireleaser --- doRelease.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doRelease.go b/doRelease.go index 6a9a7f9..34159c3 100644 --- a/doRelease.go +++ b/doRelease.go @@ -171,6 +171,12 @@ func doPublishVersion() bool { err = nil out = "This is a private repo and can not be self checked" } else { + if gopath == "go.wit.com/apps/guireleaser" { + log.Info("CAN NOT SELF UPDATE. cmd =", cmd) + log.Info("go get must be run from somewhere else other than guireleaser") + log.Info("fix this!") + os.Exit(-1) + } // publish go.mod & go.sum for use with go os.Unsetenv("GO111MODULE") log.Info("TRYING TO SELF UPDATE HERE. cmd =", cmd)