Skip to content

Populate Packagist version artifacts from dist - #104

Merged
andrew merged 1 commit into
mainfrom
packagist-dist-url
Oct 19, 2026
Merged

andrew merged 1 commit into
mainfrom
packagist-dist-url

Conversation

@andrew

@andrew andrew commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

The Packagist client stored each version's dist URL only as Metadata["dist_url"]. fetch.Resolver reads Artifacts, or download_url/tarball in metadata, so registering the Packagist registry and resolving any Composer package returned no download URL available.

FetchVersions now sets one Artifact per version from dist.url, with the dist shasum as integrity. The filename is the last path segment of the URL, with .zip added for zip dists that have no extension (GitHub zipball URLs end in a bare commit hash). That matches the filename git-pkgs/proxy's Composer handler serves archives under. Metadata is unchanged.

The URL still goes through the resolver's unsafe-URL check in selectArtifact.

https://claude.ai/code/session_01NxsA75HBjdWQKcdx7FDTDc

fetch.Resolver reads Artifacts, but Packagist only stored the dist URL in
Metadata, so resolving a Composer package returned no download URL.

Claude-Session: https://claude.ai/code/session_01NxsA75HBjdWQKcdx7FDTDc
Copilot AI balanced review requested due to automatic review settings October 18, 2026 17:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@andrew
andrew merged commit 26d9046 into main Oct 19, 2026
6 checks passed
@andrew
andrew deleted the packagist-dist-url branch October 19, 2026 07:10
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.

2 participants