From 80d196a8c9343726d47c522c4ecd82527294e816 Mon Sep 17 00:00:00 2001 From: camcui <166618273+camcui@users.noreply.github.com> Date: Thu, 2 May 2024 02:04:02 +0800 Subject: [PATCH] chore: fix function name in comment (#2771) Signed-off-by: camcui Co-authored-by: Christopher Phillips --- syft/pkg/cataloger/java/package_url.go | 2 +- syft/pkg/cataloger/python/parse_wheel_egg.go | 2 +- syft/pkg/cataloger/python/parse_wheel_egg_record.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/syft/pkg/cataloger/java/package_url.go b/syft/pkg/cataloger/java/package_url.go index 355f580e61a..e47e9a7e613 100644 --- a/syft/pkg/cataloger/java/package_url.go +++ b/syft/pkg/cataloger/java/package_url.go @@ -26,7 +26,7 @@ func packageURL(name, version string, metadata pkg.JavaArchive) string { return pURL.ToString() } -// GroupIDFromJavaPackage returns the authoritative group ID for a Java package. +// groupIDFromJavaMetadata returns the authoritative group ID for a Java package. // The order of precedence is: // 1. The group ID from the POM properties // 2. The group ID from the POM project diff --git a/syft/pkg/cataloger/python/parse_wheel_egg.go b/syft/pkg/cataloger/python/parse_wheel_egg.go index 441904333c7..eafda02b225 100644 --- a/syft/pkg/cataloger/python/parse_wheel_egg.go +++ b/syft/pkg/cataloger/python/parse_wheel_egg.go @@ -38,7 +38,7 @@ func parseWheelOrEgg(_ context.Context, resolver file.Resolver, _ *generic.Envir return pkgs, nil, nil } -// fetchRecordFiles finds a corresponding installed-files.txt file for the given python package metadata file and returns the set of file records contained. +// fetchInstalledFiles finds a corresponding installed-files.txt file for the given python package metadata file and returns the set of file records contained. func fetchInstalledFiles(resolver file.Resolver, metadataLocation file.Location, sitePackagesRootPath string) (files []pkg.PythonFileRecord, sources []file.Location, err error) { // we've been given a file reference to a specific wheel METADATA file. note: this may be for a directory // or for an image... for an image the METADATA file may be present within multiple layers, so it is important diff --git a/syft/pkg/cataloger/python/parse_wheel_egg_record.go b/syft/pkg/cataloger/python/parse_wheel_egg_record.go index 8616dd9a918..98ba3630711 100644 --- a/syft/pkg/cataloger/python/parse_wheel_egg_record.go +++ b/syft/pkg/cataloger/python/parse_wheel_egg_record.go @@ -13,7 +13,7 @@ import ( "github.com/anchore/syft/syft/pkg" ) -// parseWheelOrEggMetadata takes a Python Egg or Wheel (which share the same format and values for our purposes), +// parseWheelOrEggRecord takes a Python Egg or Wheel (which share the same format and values for our purposes), // returning all Python packages listed. func parseWheelOrEggRecord(reader io.Reader) []pkg.PythonFileRecord { var records []pkg.PythonFileRecord