Skip to content

Commit

Permalink
updated log messages
Browse files Browse the repository at this point in the history
Signed-off-by: Nishant Bansal <[email protected]>
  • Loading branch information
NishantBansal2003 committed Nov 21, 2024
1 parent 49a29ed commit 9d94eff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Integrate-Checksum/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func processPackage(packageDir string, kpmClient *client.KpmClient, pkgName stri
}

if existingSum, ok := manifest.Annotations[constants.DEFAULT_KCL_OCI_MANIFEST_SUM]; ok && dependency.Sum == existingSum {
fmt.Printf("Manifest already up to date with matching checksum. ExistingSum: %s\n", existingSum)
log.Printf("Manifest already up to date with matching checksum. ExistingSum: %s\n", existingSum)
return nil
}

Expand All @@ -211,13 +211,13 @@ func processPackage(packageDir string, kpmClient *client.KpmClient, pkgName stri
func main() {
currentDir, err := os.Getwd()
if err != nil {
fmt.Printf("Error getting current directory: %v\n", err)
log.Printf("Error getting current directory: %v\n", err)
return
}

modFilePaths, err := findKCLModFiles(currentDir)
if err != nil {
fmt.Printf("Error finding kcl.mod files: %v\n", err)
log.Printf("Error finding kcl.mod files: %v\n", err)
return
}

Expand All @@ -241,5 +241,5 @@ func main() {
}
}

fmt.Printf("Checksum successfully included in the package '%s' of version '%s'\n", pkgName, pkgVersion)
log.Printf("Checksum successfully included in the package '%s' of version '%s'\n", pkgName, pkgVersion)
}

0 comments on commit 9d94eff

Please sign in to comment.