Skip to content

Conversation

@thaJeztah
Copy link
Member

The driver.Auth interface was describing the configfile.GetAuthConfig implementation; define a local interface instead of using buildx's definition as an intermediate.

What I did

Related issue

(not mandatory) A picture of a cute animal, if possible in relation to what you did

The driver.Auth interface was describing the configfile.GetAuthConfig
implementation; define a local interface instead of using buildx's
definition as an intermediate.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah requested a review from a team as a code owner January 29, 2026 12:55
@thaJeztah thaJeztah requested review from glours and ndeloof January 29, 2026 12:55
Comment on lines +263 to +267
type authProvider interface {
GetAuthConfig(registryHostname string) (clitypes.AuthConfig, error)
}

func encodedAuth(ref reference.Named, configFile authProvider) (string, error) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Alternatively, this could just use the configfile itself as argument, but perhaps it was meant to be able to stub out / use different implementations;

Suggested change
type authProvider interface {
GetAuthConfig(registryHostname string) (clitypes.AuthConfig, error)
}
func encodedAuth(ref reference.Named, configFile authProvider) (string, error) {
func encodedAuth(ref reference.Named, configFile *configfile.ConfigFile) (string, error) {

@thaJeztah
Copy link
Member Author

test-failure is probably a flakey

@codecov
Copy link

codecov bot commented Jan 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@ndeloof ndeloof merged commit 8b769ba into docker:main Jan 29, 2026
47 of 48 checks passed
@thaJeztah thaJeztah deleted the rm_buildx_driver branch January 29, 2026 15:41
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