diff options
| author | Jeff Carr <[email protected]> | 2024-12-13 19:00:20 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-13 19:00:20 -0600 |
| commit | 6f39827fb9f4b3ea2483998f20ac434d2bd721d9 (patch) | |
| tree | 712d3551b6d0e53418ce789b9cc75e9dc5126307 /doRelease.go | |
| parent | ffade519ffd0c3d84d0102b3519d7a775a0d4bfc (diff) | |
need to run from a unchanged repo
Diffstat (limited to 'doRelease.go')
| -rw-r--r-- | doRelease.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/doRelease.go b/doRelease.go index 57e2233..68af367 100644 --- a/doRelease.go +++ b/doRelease.go @@ -34,7 +34,8 @@ func doRelease() bool { if shell.Exists("go.mod") { log.Info("go.mod exists ok") } else { - log.Info("go.mod missing") + pwd, _ := os.Getwd() + log.Info("go.mod missing in working dir", pwd) return false } @@ -164,6 +165,13 @@ func doRelease() bool { } log.Info("EVERYTHING OK. RERELEASED", me.current.Name()) + // save autogen files under the tag version (for example: "v0.2.3") + newtag := me.release.version.String() + if err := check.AutogenSave(autogen, newtag, true); err != nil { + log.Info("AutogenSave() error", err) + os.Exit(-1) + } + // it's necessary to recreate the the files here // safe to do this here. everything has been published fixGodeps(check) |
