Skip to content

Commit 52caf0b

Browse files
committed
Update the reference parsing logic to match what common tools do today (e.g. Docker CLI)
1 parent d4dad18 commit 52caf0b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

ociref/reference_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,13 @@ var parseReferenceTests = []struct {
363363
input: "[fe80::1%@invalidzone]:5000/repo",
364364
wantErr: `invalid reference syntax`,
365365
},
366+
{
367+
input: "index.docker.io/foo",
368+
wantRef: Reference{
369+
Host: "docker.io",
370+
Repository: "library/foo",
371+
},
372+
},
366373
}
367374

368375
func TestParseReference(t *testing.T) {

0 commit comments

Comments
 (0)