-
Notifications
You must be signed in to change notification settings - Fork 712
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
Correctly extract image name when using custom hub. #824
Conversation
I'd like to see a few tests for ones which are already without a version. |
also, that regex is awful. |
AFAICT the docker API will never give you images without versions. This regex expects a version.
Awfully good? :-) But seriously, whats awful about it? I might remove the names matches, but otherwise it seems pretty minimal and robust. |
Also, images don't have to have a slash in them, do they? |
Very true, |
One of the assumptions I had when writing #752, was that this function is idempotent. It shouldn't break anything, but would be nice to maintain that if possible. |
Actually those ones do (they come from library/busybox) But images you make locally won't, so that does need fixing. Unfortunately I think that makes parsing non-deterministic (how to differentiate from hostname/foo vs org/foo). I guess something like "first split on slash, if 2 -> first is org, if 3 -> first is repo" might work?
I see - so you want versions to be optional. Thats totally possible. |
3488087
to
984fd52
Compare
@paulbellamy PTAL |
LGTM |
Correctly extract image name when using custom hub.
Fixes #820