Skip to main content

Crate monochange_go

Crate monochange_go 

Source
Expand description

§monochange_go

monochange_go discovers Go modules from go.mod files and resolves versions from git tags.

§Why use it?

  • discover Go modules in single-module and multi-module repositories
  • normalize Go module dependency edges for the shared planner
  • infer go mod tidy as the default lockfile refresh command

§Best for

  • building Go-aware discovery flows without the full CLI
  • converting Go module structure into shared monochange_core records
  • managing multi-module monorepo releases with path-prefixed git tags

§Public entry points

  • discover_go_modules(root) discovers Go modules
  • GoAdapter exposes the shared adapter interface

§Scope

  • go.mod parsing for module path, go version, and require directives
  • multi-module repository detection
  • go mod tidy lockfile command inference
  • go.sum lockfile discovery

Structs§

GoAdapter

Enums§

GoVersionedFileKind

Constants§

GO_MOD_FILE
GO_SUM_FILE

Functions§

adapter
default_dependency_fields
Return the manifest fields that usually contain dependency versions.
default_dependency_version_prefix
default_lockfile_commands
discover_go_modules
discover_lockfiles
parse_go_version
Parse a Go semver version string like v1.2.3 into a semver::Version.
supported_versioned_file_kind
update_go_mod_text
Update a go.mod file’s require directives for cross-module dependencies.
validate_versioned_file
Return the default dependency-version prefix for this ecosystem. Validate that a Go versioned file contains a readable version field.
write_go_placeholder_manifest