Skip to content

Commit

Permalink
chore: fix function name in comment (#2771)
Browse files Browse the repository at this point in the history
Signed-off-by: camcui <cuishua@sina.cn>
Co-authored-by: Christopher Phillips <christopher.phillips@anchore.com>
  • Loading branch information
camcui and spiffcs committed May 1, 2024
1 parent ed40833 commit 80d196a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion syft/pkg/cataloger/java/package_url.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion syft/pkg/cataloger/python/parse_wheel_egg.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion syft/pkg/cataloger/python/parse_wheel_egg_record.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 80d196a

Please sign in to comment.