Skip to content

Package index: fix checksum and add URL support to parser

Puerco requested to merge puerco/go:package-url into master

This MR has 3 commits to improve the index parser. A summary of the commits:

  1. Improves the TestSinglePackage test to cover all supported tokens in the APK database.

  2. Fix two bugs that prevented the correct parsing of checksums in the package index:

  • A bug that prevented catching the checksum entry
  • A bug in the decoding algorithm that prevented the base64 to be read properly
  1. Add URL support to package and index parser

Signed-off-by: Adolfo García Veytia (Puerco) puerco@chainguard.dev

Merge request reports

Loading