Skip to content

Conversation

@dgageot
Copy link
Member

@dgageot dgageot commented Feb 3, 2026

No description provided.

Signed-off-by: David Gageot <david.gageot@docker.com>
@dgageot dgageot requested a review from a team as a code owner February 3, 2026 16:39
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Review Summary

LGTM - No issues found

This PR moves the URL reference check to occur after alias resolution, which is the correct approach. The change actually fixes a bug where aliases pointing to URLs would incorrectly fall through to NewOCISource() instead of being handled as URL sources.

Analysis

The key improvement:

  • Before: URL check happened before resolve(), so it only caught direct URL inputs
  • After: URL check happens after resolve(), so it catches both direct URLs and URLs from resolved aliases

Since resolve() already preserves URLs as-is (via the check at line 163: if IsOCIReference(agentFilename) || IsURLReference(agentFilename)), this change maintains correct behavior for all cases while fixing the alias-to-URL scenario.

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