Skip to content

Add Docker Auth Wrapper to check for auth entries for all Docker Hub domains#3

Merged
jcarter3 merged 1 commit intomainfrom
add-docker-auth-wrapper
Apr 15, 2026
Merged

Add Docker Auth Wrapper to check for auth entries for all Docker Hub domains#3
jcarter3 merged 1 commit intomainfrom
add-docker-auth-wrapper

Conversation

@jcarter3
Copy link
Copy Markdown
Collaborator

No description provided.

@jcarter3 jcarter3 force-pushed the add-docker-auth-wrapper branch 2 times, most recently from 22ebdca to b8a2f8c Compare April 15, 2026 17:20
Comment thread internal/ocidocker/dockerhub.go Outdated
@jcarter3 jcarter3 force-pushed the add-docker-auth-wrapper branch from 722d0a9 to 3283d71 Compare April 15, 2026 17:46
@jcarter3 jcarter3 force-pushed the add-docker-auth-wrapper branch from eb9f053 to 9128ac4 Compare April 15, 2026 18:00
Copy link
Copy Markdown
Member

@tianon-sso tianon-sso left a comment

Choose a reason for hiding this comment

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

It feels a little bit self-serving to approve when this is still so closely my own original code but there it is 😂 ❤️

(I don't own "https://github.com/self-five" for nothing, after all)

sorted := DockerHubHostsSorted()
for i, host := range sorted {
if i != int(DockerHubHosts[host]) {
t.Errorf("host %s not sorted", host)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nice - I was worried this might not catch certain edge cases, but it sure does: https://go.dev/play/p/VcLZWcOKSUg

the error message sucks, but makes it really obvious you need to go back and look at the list of exactly 5 items and figure out which one is screwed up 😂 ❤️

@jcarter3 jcarter3 merged commit 59e2a4d into main Apr 15, 2026
5 checks passed
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