Skip to content

Commit 1d01bb4

Browse files
committed
Use registry host rather than URL for creds lookup
Signed-off-by: itowlson <ivan.towlson@fermyon.com>
1 parent 52e8aa9 commit 1d01bb4

File tree

1 file changed

+1
-2
lines changed
  • crates/wasm-pkg-client/src/oci

1 file changed

+1
-2
lines changed

crates/wasm-pkg-client/src/oci/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ impl OciBackend {
112112
));
113113
}
114114

115-
let server_url = format!("https://{}", self.oci_registry);
116-
match docker_credential::get_credential(&server_url) {
115+
match docker_credential::get_credential(&self.oci_registry) {
117116
Ok(DockerCredential::UsernamePassword(username, password)) => {
118117
return Ok(RegistryAuth::Basic(username, password));
119118
}

0 commit comments

Comments
 (0)