86
}
87
89
>
var failures []string
90
>
for _, mod := range knownModules {
91
>
modVersion, ok := findRequiredModuleVersion(modFile, mod.modulePath)
92
>
if !ok {
93
failures = append(failures, fmt.Sprintf("%s: dependency not found in go.mod", mod.modulePath))
94
continue
95
}
96
98
>
failures = append(failures, fmt.Sprintf("%s: version %q must be a tagged semver release", mod.modulePath, modVersion.Version))
main.go
99
>
continue
100
}
101
103
}
104
106
>
return fmt.Errorf("release dependency validation failed:\n - %s", strings.Join(failures, "\n - "))
main.go
107
>
}
108
109
fmt.Println("All required dependencies use tagged releases")