-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
[TypeSpecValidation] bug fix: drive letter inconsistency for windows #27002
Conversation
Next Steps to Merge✔️ All automated merging requirements have been met! Refer to step 4 in the PR workflow diagram (even if your PR is for data plane, not ARM). |
Swagger Validation Report
|
Swagger Generation Artifacts
|
PR validation pipeline restarted successfully. If there is ApiView generated, it will be updated in this comment. |
/azp run |
Azure Pipelines successfully started running 4 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 4 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 4 pipeline(s). |
.resolve(folder) | ||
.split(path.sep) | ||
.join("/") | ||
.replace(/[a-zA-Z]:/g, ""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are just removing the drive letter? This is unsound, since C:\
is not equivalent to D:\
. I think a better option would be to keep the drive letter but normalize to upper-case (which is usually how drive letters are represented).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we even care about the drive letter? Should we just strip and make everything relative to the repo root?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a general-purpose helper function. Really, all we need to do is normalize the drive letter casing, and it should be good.
/azp run TypeSpec Validation - CI |
No pipelines are associated with this pull request. |
/azp run TypeSpec Validation - CI |
Azure Pipelines successfully started running 1 pipeline(s). |
closes #26557