Skip to content

Conversation

@tdabasinskas
Copy link

@tdabasinskas tdabasinskas commented Dec 18, 2025

Fixes #1127
Fixes #1080

@tdabasinskas tdabasinskas requested a review from a team as a code owner December 18, 2025 14:38
return "", fmt.Errorf("creating content store: %w", err)
}

localRef := ref.Context().RepositoryStr() + separator(ref) + ref.Identifier()
Copy link
Member

Choose a reason for hiding this comment

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

This is the line that removes the registry from the reference, instead of adding a second link, could we make it so that the reference still has the registry in it?

Copy link
Author

Choose a reason for hiding this comment

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

Hmm, so, we should basically do localRef := ref.String(), as there's no point of constructing this if we want to keep the registry?

I believe this would change the hashes for DockerHub images and will require users to pull them again, won't it? It might not be a big deal, but just want to be sure we're not breaking anything.

Also, if we doing this, should we delete separator() and its tests, as that's the only place it's used in?

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.

cagent pull fails for non-DockerHub registries - ref hash mismatch cagent pull fails due to reference mismatch between storage and retrieval

2 participants