From d8f9ce32f7dcae91cc6caec3de98e744b6a75807 Mon Sep 17 00:00:00 2001 From: leovct Date: Fri, 29 Nov 2024 12:33:19 +0100 Subject: [PATCH] fix: typo --- .../git_package_content_provider/locators.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }