camallo / dkregistry-rs

A pure-Rust asynchronous library for Docker Registry API v2
Apache License 2.0
62 stars 39 forks source link

Support tagged digested references #144

Open glyn opened 4 years ago

glyn commented 4 years ago

dkregistry::reference::Version does not accommodate tagged digested references. Although these are not particularly common, they are valid.

lucab commented 4 years ago

Indeed. Related, it would probably be a good idea to first address this TODO item for parsing references: https://github.com/camallo/dkregistry-rs/blob/cb22b538d788f7a88bf390e34bece4a503cefecb/src/reference.rs#L156

glyn commented 4 years ago

Perhaps. One starting point for a reference grammar is in a code comment; I am not aware of a grammar in the OCI specs. The testcases clarify the intention though.