Struo
← Changelog

Preview Go requirements from package imports

Standalone Go 1.18+ modules can request import-derived requirement previews with go_module_resolution, propose_updates = true and operation = "tidy". Struo follows ordinary and test imports under all-build-tags rules, resolves known providers in the graph, and proposes native go.mod and go.sum updates. It removes unused requirements, recomputes directness and prunes unused sums.

Applying a proposal remains explicit. Source contents and directory membership, including empty directories, guard against applying a stale import analysis. Version discovery, workspace synchronization, legacy compatibility graphs and tool or ignore directives remain unsupported. There is no native solver fallback for those cases.