mirror of
https://github.com/vatesfr/xen-orchestra.git
synced 2026-11-09 17:06:13 -06:00
feat(gen-deps-list): detect duplicate packages
Prevents a bug where a second entry would override the previous one and possibly decrease the release type (e.g. `major + patch → patch`).
This commit is contained in:
@@ -123,6 +123,10 @@ async function readPackagesFromChangelog(toRelease) {
|
||||
}
|
||||
|
||||
const { name, releaseType } = match.groups
|
||||
if (name in toRelease) {
|
||||
throw new Error('duplicate package to release in CHANGELOG.unreleased.md: ' + name)
|
||||
}
|
||||
|
||||
toRelease[name] = releaseType
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user