carvel-dev / carvel-dev/imgpkg

Cryptic error message when copying tar to repository

Open
#111 1 comment 1 reaction 0 assignees View on GitHub
carvel accepted enhancement good first issue Hacktoberfest priority/unprioritized-backlog snack
Dominant language
Go
Stars
284
Forks
70
PR merge metrics
No merged PRs in 30d

Description

**Describe the problem/challenge you have**
When copying a tar, or a bundle to a repository, when the destination provided in the command line contains a tag, or have no repository, or is malformed in some way the error message is not very helpful
ex:
```
imgpkg copy --tar some-bundle-v0.1.0.tar --to-repo localhost:5000
Error: Building import repository ref: repository can only contain the runes `abcdefghijklmnopqrstuvwxyz0123456789_-./`: localhost:5000
```

**Describe the solution you'd like**
`imgpkg` should be able to replace the message that is provided by the ggcr library with an easier understand message.
When a tag is present it should say: `cannot specify a tag in the destination repository`
When is malformed it should say `destination repository is not valid. The format allowed is registry.io/some-image or registry.io:11111/some-image`

---

Vote on this request

This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.

👍 "I would like to see this bug fixed as soon as possible"
👎 "There are more important bugs to focus on right now"

We are also happy to receive and review Pull Requests if you want to help fix this issue.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.