Skip to content

Commit

Permalink
Check for already process dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
chasefleming committed Jul 12, 2024
1 parent ce228e5 commit f582453
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/dependencymanager/dependencyinstaller.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,12 @@ func (di *DependencyInstaller) processDependency(dependency config.Dependency) e
}

func (di *DependencyInstaller) fetchDependencies(networkName string, address flowsdk.Address, assignedName, contractName string) error {
sourceString := fmt.Sprintf("%s://%s.%s", networkName, address.String(), contractName)

if _, exists := di.dependencies[sourceString]; exists {
return nil // Skip already processed dependencies
}

err := di.addDependency(config.Dependency{
Name: assignedName,
Source: config.Source{
Expand Down

0 comments on commit f582453

Please sign in to comment.