-
Notifications
You must be signed in to change notification settings - Fork 948
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bugfix: pouch pull should handle space input as an error #1753
bugfix: pouch pull should handle space input as an error #1753
Conversation
Sorry, I didn't notice that you did it. I will close my PR,could you add a test ? |
pkg/reference/parse.go
Outdated
// defaultTag is latest if there is no tag | ||
defaultTag = "latest" | ||
) | ||
|
||
// Parse parses ref into reference.Named. | ||
func Parse(ref string) (Named, error) { | ||
if ok := regRef.MatchString(ref); !ok { | ||
return nil, ErrInvalid | ||
return nil, errors.New("invalid reference: " + ref) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The input from users, so we don't need to do this maybe, and this change also breaks the test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your kindly reminding~
Signed-off-by: xiechengsheng <XIE1995@whut.edu.cn>
450fc55
to
daa50cf
Compare
Codecov Report
@@ Coverage Diff @@
## master #1753 +/- ##
==========================================
- Coverage 14.16% 14.16% -0.01%
==========================================
Files 281 281
Lines 56797 56799 +2
==========================================
Hits 8043 8043
- Misses 47817 47818 +1
- Partials 937 938 +1
|
LGTM |
Signed-off-by: xiechengsheng XIE1995@whut.edu.cn
Ⅰ. Describe what this PR did
pouch pull should handle space input as an error
Ⅱ. Does this pull request fix one issue?
Fixes #1748
Ⅲ. Describe how you did it
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews