Skip to content

Commit

Permalink
fix: compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Dec 15, 2023
1 parent 7fb5565 commit 934083f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ape/managers/project/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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)
Expand Down

0 comments on commit 934083f

Please sign in to comment.