try to fix self publish of guireleaser

This commit is contained in:
Jeff Carr 2024-11-07 02:55:22 -06:00
parent 6e16c95fb2
commit 5e635873ad
1 changed files with 6 additions and 0 deletions

View File

@ -171,6 +171,12 @@ func doPublishVersion() bool {
err = nil err = nil
out = "This is a private repo and can not be self checked" out = "This is a private repo and can not be self checked"
} else { } 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 // publish go.mod & go.sum for use with go
os.Unsetenv("GO111MODULE") os.Unsetenv("GO111MODULE")
log.Info("TRYING TO SELF UPDATE HERE. cmd =", cmd) log.Info("TRYING TO SELF UPDATE HERE. cmd =", cmd)