Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect comparison of paths for namespace resolution #104

Closed
emrainey opened this issue Jun 3, 2024 · 1 comment
Closed

Incorrect comparison of paths for namespace resolution #104

emrainey opened this issue Jun 3, 2024 · 1 comment
Assignees
Labels

Comments

@emrainey
Copy link

emrainey commented Jun 3, 2024

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

if (lu_full_namespace_period).startswith(tg_full_name_period):

@thirtytwobits thirtytwobits self-assigned this Jun 27, 2024
thirtytwobits added a commit to thirtytwobits/pydsdl that referenced this issue Jun 27, 2024
This changes our logic for detecting duplicate definitions on case-sensitive file-systems to only operate on files of interest and to fix this detection logic per issue OpenCyphal#104.

If globular searches find duplicates we do not waste time detecting this until/unless these duplicates are actually considered when parsing target definitions.
thirtytwobits added a commit to thirtytwobits/pydsdl that referenced this issue Jun 28, 2024
This changes our logic for detecting duplicate definitions on case-sensitive file-systems to only operate on files of interest and to fix this detection logic per issue OpenCyphal#104.

If globular searches find duplicates we do not waste time detecting this until/unless these duplicates are actually considered when parsing target definitions.

# Conflicts:
#	pydsdl/_namespace.py
thirtytwobits added a commit to thirtytwobits/pydsdl that referenced this issue Jun 28, 2024
This changes our logic for detecting duplicate definitions on case-sensitive file-systems to only operate on files of interest and to fix this detection logic per issue OpenCyphal#104.

If globular searches find duplicates we do not waste time detecting this until/unless these duplicates are actually considered when parsing target definitions.
thirtytwobits added a commit to thirtytwobits/pydsdl that referenced this issue Jun 28, 2024
This changes our logic for detecting duplicate definitions on case-sensitive file-systems to only operate on files of interest and to fix this detection logic per issue OpenCyphal#104.

If globular searches find duplicates we do not waste time detecting this until/unless these duplicates are actually considered when parsing target definitions.
thirtytwobits added a commit that referenced this issue Jul 16, 2024
This changes our logic for detecting duplicate definitions on
case-sensitive file-systems to only operate on files of interest and to
fix this detection logic per issue #104.

If globular searches find duplicates we do not waste time detecting this
until/unless these duplicates are actually considered when parsing
target definitions.

---------

Co-authored-by: Pavel Kirienko <pavel.kirienko@gmail.com>
@thirtytwobits
Copy link
Member

This fix will be available with version 1.21.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants