in code/go/internal/validator/semantic/validate_version_integrity.go [127:143]
func ensureManifestVersionHasChangelogEntry(manifestVersion string, versions []string) error {
if len(versions) == 0 {
return errors.New("no versions found in changelog")
}
if manifestVersion == versions[0] {
return nil
}
for _, v := range versions {
// It's allowed to keep additional record with "-next" suffix for changes that will be released in the future.
if v == manifestVersion && strings.HasSuffix(versions[0], "-next") {
return nil
}
}
return errors.New("current manifest version doesn't have changelog entry")
}