Skip to content
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

Fix scaning of public images #43

Merged
merged 1 commit into from
Jul 6, 2017
Merged

Fix scaning of public images #43

merged 1 commit into from
Jul 6, 2017

Conversation

hashmap
Copy link
Contributor

@hashmap hashmap commented Jul 6, 2017

This change fix pulling of public images (#42). Currently, Klar always expects
DOCKER_USER to be specified which is not required in this particular
case.

This behavior is hard to test in unit tests, the integration test is not a part of the project yet. Also we don't have integration tests running as part of PR process, I do it on my machine and use my env file which contains DOCKER_USER. Now I run it twice with different env files. I'll create a separate issue for test & build improvement.

This change fix pulling of public images. Currently Klar always expects
DOCKER_USER to be specified which is not required in this particular
case.
@@ -131,8 +131,8 @@ func NewImage(qname, user, password string, insecureTLS, insecureRegistry bool)
name = strings.Join(nameParts, "/")
}
if tag == "" {
tag = strings.Join(tagParts, ":")
}
tag = strings.Join(tagParts, ":")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This part is unrelated, blame gofmt

@hashmap hashmap merged commit ea729d2 into master Jul 6, 2017
@hashmap hashmap deleted the anon-login branch July 6, 2017 14:13
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.

1 participant