diff --git a/core/server/api_container/server/startosis_engine/startosis_packages/git_package_content_provider/locators.go b/core/server/api_container/server/startosis_engine/startosis_packages/git_package_content_provider/locators.go index 237d4498e8..56c9a03538 100644 --- a/core/server/api_container/server/startosis_engine/startosis_packages/git_package_content_provider/locators.go +++ b/core/server/api_container/server/startosis_engine/startosis_packages/git_package_content_provider/locators.go @@ -20,8 +20,8 @@ func isLocalLocator(locator string) bool { } func shouldBlockAbsoluteLocatorBecauseIsInTheSameSourceModuleLocatorPackage(relativeOrAbsoluteLocator string, sourceModuleLocator string, rootPackageId string) bool { - isSourceModuleInRootPackage := strings.Contains(sourceModuleLocator, rootPackageId) - isAbsoluteLocatorInRootPackage := strings.Contains(relativeOrAbsoluteLocator, rootPackageId) + isSourceModuleInRootPackage := strings.Contains(sourceModuleLocator, rootPackageId + "/") + isAbsoluteLocatorInRootPackage := strings.Contains(relativeOrAbsoluteLocator, rootPackageId + "/") return isSourceModuleInRootPackage && isAbsoluteLocatorInRootPackage }