diff --git a/.changelog/4652.yml b/.changelog/4652.yml new file mode 100644 index 0000000000..05c3bea0a2 --- /dev/null +++ b/.changelog/4652.yml @@ -0,0 +1,4 @@ +changes: +- description: Fixed an issue where Upload command uploaded packs without their dependencies when using --zip flag. + type: fix +pr_number: 4652 diff --git a/demisto_sdk/commands/upload/uploader.py b/demisto_sdk/commands/upload/uploader.py index 69909143cb..7989a1c7da 100644 --- a/demisto_sdk/commands/upload/uploader.py +++ b/demisto_sdk/commands/upload/uploader.py @@ -30,6 +30,9 @@ from demisto_sdk.commands.content_graph.common import ( ContentType, ) +from demisto_sdk.commands.content_graph.interface import ( + ContentGraphInterface, +) from demisto_sdk.commands.content_graph.objects.base_content import ( BaseContent, ) @@ -274,6 +277,12 @@ def _upload_single(self, path: Path) -> bool: ) self.failed_parsing.append((path, reason)) return False + + with ContentGraphInterface() as interface: + content_item = interface.from_path( + path=content_item.path, + marketplace=self.marketplace, + ) if ( self.marketplace and isinstance(content_item, ContentItem)