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

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

Conversation

david-driscoll
Copy link
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.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
…schema file to be added twice on windows machines
@michaelstaib michaelstaib merged commit bc437c4 into ChilliCream:main Sep 25, 2024
5 checks passed
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.

None yet

2 participants