Documentation
¶
Overview ¶
Package modulefix implements the shared module-deprecation auto-fix used by both the manifest and project-manifest linters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ModulePath ¶
ModulePath builds the finding path for module i, preferring its name over its slice index. Shared so the checker and fixer produce identical paths.
Types ¶
type Applied ¶
Applied records one fix the fixer made, for logging. Path mirrors the corresponding lint.Finding.Path (e.g. "modules.<name>.prerelease").
func FixModules ¶
FixModules walks the modules: sequence in root (a manifest/service root mapping node) and applies the safe module-field migrations in place, returning what it changed. A missing or non-sequence modules: key is a no-op.
Click to show internal directories.
Click to hide internal directories.