Skip to content

Conversation

@mohammedahmed18
Copy link
Contributor

@mohammedahmed18 mohammedahmed18 commented Aug 1, 2025

I tried pushing an image, and I didn't specify the tag and I got that error (which wasn't clear to me)

[ERROR] Failed to push: failed to copy to remote: failed to perform "Resolve" on source: missing reference.

maybe it's a skill issue for me, but I didn't know reference means tag here until I looked inside the code

Signed-off-by: mohammed <mohammed18200118@gmail.com>
Signed-off-by: mohammed <mohammed18200118@gmail.com>
@gorkem gorkem requested a review from Copilot August 2, 2025 11:58
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR improves the default behavior when no tag is specified in image references by defaulting to the "latest" tag instead of an empty string. This addresses a user experience issue where pushing images without specifying a tag resulted in unclear error messages.

  • Updates the reference parsing logic to default to "latest" tag when no tag is provided
  • Updates corresponding test cases to reflect the new default behavior

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
pkg/lib/repo/util/reference.go Adds default "latest" tag assignment when no tag or digest is specified
pkg/lib/repo/util/reference_test.go Updates test expectations to use "latest" tag for references without explicit tags

Copy link
Contributor

@amisevsk amisevsk left a comment

Choose a reason for hiding this comment

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

I think this is a good idea, considering how many users I've seen run into the same issue.

@amisevsk amisevsk merged commit e0d4ced into kitops-ml:main Aug 7, 2025
7 checks passed
amisevsk added a commit to amisevsk/kitops that referenced this pull request Oct 30, 2025
…l#935)"

This reverts commit e0d4ced.

Signed-off-by: Angel Misevski <amisevsk@gmail.com>
amisevsk added a commit that referenced this pull request Nov 4, 2025
This reverts commit e0d4ced.

Signed-off-by: Angel Misevski <amisevsk@gmail.com>
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