diff options
| author | Jeff Carr <[email protected]> | 2025-11-05 18:49:21 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-11-05 18:49:21 -0600 |
| commit | 8c94c22fa74e9d0fd9df988b4a6e85caf05fe1a1 (patch) | |
| tree | ae6d2f5f6420bc8fdbf691181607c9c3e230af95 | |
| parent | ccfd2453058c85b5f241d8970d1be5f6d84d04d3 (diff) | |
| -rw-r--r-- | doPublish.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/doPublish.go b/doPublish.go index d4a2122..e081b7a 100644 --- a/doPublish.go +++ b/doPublish.go @@ -36,6 +36,12 @@ func rillRestore(repo *gitpb.Repo) error { } else { _, err = repo.RunQuiet(cmd) } + + if env.True("--strict") { + cmd = []string{"go-mod-clean", "strict"} + _, err = repo.RunQuiet(cmd) + } + if err != nil { errs := fmt.Sprintf("%v failed (%v)", cmd, err) return errors.New(errs) @@ -58,8 +64,8 @@ func doPublish() error { footer := restored.PrintPublishNewTB() fmt.Printf("restored.len(%d) with errors: %s\n", restored.Len(), footer) - publish := me.forge.RunOnReposSlow(me.forge.Repos, rePrepareReleaseNew) // doesn't use Rill() - // publish := me.forge.RunOnRepos(me.forge.Repos, rePrepareReleaseNew) + // publish := me.forge.RunOnReposSlow(me.forge.Repos, rePrepareReleaseNew) // doesn't use Rill() + publish := me.forge.RunOnRepos(me.forge.Repos, rePrepareReleaseNew) if publish == nil { return errors.New("nothing to publish. you actually have to write code first") } |
