From 934083f3da81afe2829752db968a9cb232145fbb Mon Sep 17 00:00:00 2001 From: Juliya Smith Date: Fri, 15 Dec 2023 08:45:26 -0600 Subject: [PATCH] fix: compiling --- src/ape/managers/project/types.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ape/managers/project/types.py b/src/ape/managers/project/types.py index 791d32a098..5a90d81894 100644 --- a/src/ape/managers/project/types.py +++ b/src/ape/managers/project/types.py @@ -164,7 +164,7 @@ def create_manifest( ) -> PackageManifest: # Read the project config and migrate project-settings to Ape settings if needed. compile_config = self.config_manager.get_config("compile") - self.project_manager.load_dependencies(use_cache=use_cache) + self.project_manager.load_dependencies() source_paths: List[Path] = list( set( [p for p in self.source_paths if p in file_paths] @@ -177,9 +177,11 @@ def create_manifest( ) ) + manifest = self.manifest if use_cache else PackageManifest() + # Generate sources and contract types. project_sources = _ProjectSources( - self.manifest, source_paths, self.contracts_folder, self._cache_folder + manifest, source_paths, self.contracts_folder, self._cache_folder ) contract_types = project_sources.remaining_cached_contract_types compiled_contract_types = self._compile(project_sources)