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

[TypeSpec Validation] Rule NpmPrefix fails on Windows with lower-case drive letter #26557

Closed
mikeharder opened this issue Nov 3, 2023 · 0 comments · Fixed by #27002
Closed
Assignees
Labels
Spec PR Tools Tooling that runs in azure-rest-api-specs repo.

Comments

@mikeharder
Copy link
Member

mikeharder commented Nov 3, 2023

C:\>cd /d c:\git\specs

c:\git\specs>npm ci

c:\git\specs>npx tsv specification\contosowidgetmanager\Contoso.WidgetManager
Running TypeSpecValidation on folder: specification/contosowidgetmanager/Contoso.WidgetManager

Executing rule: NpmPrefix
run command:npm prefix
Expected npm prefix: C:\git\specs
Actual npm prefix: c:\git\specs
Rule NpmPrefix failed

We will probably need/want to do case-insensitive path compare on Windows, since Node APIs are inconsitent:

nodejs/node#6624

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Spec PR Tools Tooling that runs in azure-rest-api-specs repo.
Projects
Status: 🎊 Closed
Development

Successfully merging a pull request may close this issue.

2 participants