Skip to content

Validate dependencies

validate dependencies - Validate module dependencies from go.mod files against contracts

Validate module dependencies from go.mod files against contracts.

This command checks that actual dependencies in go.mod files match the dependencies declared in module contracts. It helps ensure consistency between contract definitions and actual implementation dependencies.

Validation failures indicate mismatches that should be resolved by either updating the contract or fixing the go.mod file.

Notes

Expected Output:

Displays mismatches between module contracts and actual go.mod dependencies. Shows modules with extra or missing dependencies. Exit code 0 if all match, 1 if discrepancies found.

Examples

validate dependencies

See Also


Tutorials | How-to Guides | Explanation | Reference

You are here: Reference — information-oriented technical descriptions of the system.