Skip to content

Commit

Permalink
removed logNoInstallationMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
orto17 committed Jan 6, 2025
1 parent 19d3822 commit 91c07fd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packagehandlers/conanpackagehandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ func (conan *ConanPackageHandler) updateDirectDependency(vulnDetails *utils.Vuln
if !isAnyDescriptorFileChanged {
err = fmt.Errorf("impacted package '%s' was not found or could not be fixed in all descriptor files", vulnDetails.ImpactedDependencyName)
} else {
conan.logNoInstallationMessage()
log.Info("Requirements file was updated with a suggested fix version, but no installation was performed. " +
"In order to update the dependencies, please run 'conan install' command")
}
return
}
Expand All @@ -72,8 +73,3 @@ func (conan *ConanPackageHandler) updateConanFile(conanFilePath string, vulnDeta
isFileChanged = true
return
}

func (conan *ConanPackageHandler) logNoInstallationMessage() {
log.Info("Requirements file was updated with a suggested fix version, but no installation was performed. " +
"In order to update the dependencies, please run 'conan install' command")
}

0 comments on commit 91c07fd

Please sign in to comment.