Skip to content

Fixed a case where a schema path with unix paths (/) would cause the schema file to be added twice on windows machines - #7505

Merged
michaelstaib merged 3 commits into
ChilliCream:mainfrom
david-driscoll:fix/duplicate-schemas-added-on-windows
Sep 25, 2024
Merged

michaelstaib merged 3 commits into
ChilliCream:mainfrom
david-driscoll:fix/duplicate-schemas-added-on-windows

Conversation

@david-driscoll

Copy link
Copy Markdown
Contributor

Summary of the changes (Less than 80 chars)
This is a really subtle bug.

If the schema file contains a schema path that contains a unix /. And the schema file happens to be part of the include documents path.

Then you get the same schema file twice, (because the string is different as far as the hashset is concerned). Which the reports many duplicate schema errors when trying to generate a client.

GetFullPath will essentially normalize the path for the current operating system.

Note:
I don't know if the new [] syntax causes any issues (I don't think so) but let me know if that needs to change.

Seems to be caused by to: #7368

Closes #bugnumber (in this specific format)
Not sure.

…schema file to be added twice on windows machines
@michaelstaib
michaelstaib merged commit bc437c4 into ChilliCream:main Sep 25, 2024
michaelstaib pushed a commit that referenced this pull request Sep 25, 2024
…schema file to be added twice on windows machines (#7505)

(cherry picked from commit bc437c4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants