mirror of
https://github.com/EnumeratedDev/bpm.git
synced 2026-10-31 11:01:48 +00:00
Allow split package to have same name as main package
This commit is contained in:
1 parent
b07df8c7df
commit
a32dfba54a
1 file changed
+2
-2
@@ -451,8 +451,8 @@ func ReadPackageInfo(contents string) (*PackageInfo, error) {
|
||||
|
||||
// Setup split package information
|
||||
for i, splitPkg := range pkgInfo.SplitPackages {
|
||||
// Ensure split package contains a name and one that is different from the main package name
|
||||
if splitPkg.Name == "" || splitPkg.Name == pkgInfo.Name {
|
||||
// Ensure split package contains a name
|
||||
if splitPkg.Name == "" {
|
||||
return nil, fmt.Errorf("invalid split package name: %s", splitPkg.Name)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user