OpenCyphal / pydsdl

Cyphal DSDL processing front end implemented in Python
https://opencyphal.org
MIT License
10 stars 9 forks source link

Incorrect comparison of paths for namespace resolution #104

Closed emrainey closed 2 months ago

emrainey commented 3 months ago

When trying to defend against /a/b/c.dsdl from colliding with /a/b/c/d.dsdl it also stops /a/b/cother/d.dsdl since it compares with a startswith and not a full basename compare in https://github.com/OpenCyphal/pydsdl/blob/98453a4f29e2776817870159eda0e8a5bfb819a2/pydsdl/_namespace.py#L270

thirtytwobits commented 2 months ago

This fix will be available with version 1.21.1