Skip to content

Commit 96e3b85

Browse files
committed
fix: add 'mapped=1' to query string for oci-redirect
1 parent 7ebbd65 commit 96e3b85

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: client/oci.go

+4
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ func (c *Client) ociRegistryAuth(ctx context.Context, name string, accessTypes [
4040
v := url.Values{}
4141
v.Set("namespace", name)
4242

43+
// Setting 'mapped' to '1' (true) enables support for mapping short library refs to
44+
// fully-qualified name
45+
v.Set("mapped", strconv.Itoa(1))
46+
4347
ats := make([]string, 0, len(accessTypes))
4448
for _, at := range accessTypes {
4549
ats = append(ats, string(at))

0 commit comments

Comments
 (0)