mirror of
https://github.com/therootcompany/golib.git
synced 2026-03-02 23:57:59 +00:00
- findMainPackages: stop descending into child directories that have their own go.mod on disk (even if untracked), treating them as independent module roots so they are never double-counted with the parent module - initModuleGroup: skip if the module has uncommitted changes (excluding files inside child module directories so a freshly-run --cmd step does not block the parent); new helpers hasUncommittedChanges, findChildModuleRoots - monorel init --cmd: scans recursively for direct children of cmd/ directories that contain package main but have no go.mod yet, runs go mod init + tidy for each, and prints a suggested commit at the end; new helpers initCmdModules, readModulePath, runPrintIn