There are cases where there are "looped dependencies"
- DepX -> DepY -> DepX -> ...
Potential Solution
- look into
go mod tidy which "go.mod file matches the source code in the module. It adds any missing module requirements necessary to build the current module’s packages and dependencies, and it removes requirements on modules that don’t provide any relevant packages. It also adds any missing entries to go.sum and removes unnecessary entries"
There are cases where there are "looped dependencies"
Potential Solution
go mod tidywhich "go.mod file matches the source code in the module. It adds any missing module requirements necessary to build the current module’s packages and dependencies, and it removes requirements on modules that don’t provide any relevant packages. It also adds any missing entries to go.sum and removes unnecessary entries"