Skip to content

Use standard apk PURL type for Alpine packages - #5366

Open
Vaibhav200303 wants to merge 2 commits into
aboutcode-org:developfrom
Vaibhav200303:codex/fix-4964-alpine-purl
Open

Vaibhav200303 wants to merge 2 commits into
aboutcode-org:developfrom
Vaibhav200303:codex/fix-4964-alpine-purl

Conversation

@Vaibhav200303

@Vaibhav200303 Vaibhav200303 commented Oct 16, 2026 •

Copy link
Copy Markdown

Fixes #4964

Alpine package handlers now emit the standard apk Package URL type. This also updates PURLs for Alpine dependencies and source packages and refreshes the Alpine expected fixtures.

The Alpine installed-package tests exposed a separate Windows path bug: package assembly used pathlib.Path to join ScanCode resource paths. On Windows this inserted backslashes, so no extracted files matched their package file references. The join now uses posixpath, matching ScanCode's resource path format on every platform.

Validation:

  • On unchanged develop, venv\Scripts\python.exe -m pytest tests/packagedcode/test_alpine.py -q --disable-warnings --tb=line: 116 passed, 3 failed on Windows.
  • With this PR, the same command: 119 passed, 0 failed.
  • All 119 updated expected JSON files parse successfully.
  • git diff --check passes.

Signed-off-by: Vaibhav Sharma vs9109807@gmail.com

Signed-off-by: Vaibhav Sharma <vs9109807@gmail.com>
Signed-off-by: Vaibhav Sharma <vs9109807@gmail.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect PURL type for Alpine packages

1 participant