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

Warn when using windows style path separator #4023

Merged
merged 2 commits into from
Aug 5, 2024

Conversation

timotheeguerin
Copy link
Member

@timotheeguerin timotheeguerin commented Jul 25, 2024

fix #1261

Using windows style separator can cause issue when trying to run a spec on a non windows platform on top of being a pain to work with(escaping)

This PR adds validation to config element that are already validated as absolute-path to also check they unix a unix style of path

@azure-sdk
Copy link
Collaborator

azure-sdk commented Jul 25, 2024

All changed packages have been documented.

  • @typespec/compiler
Show changes

@typespec/compiler - feature ✏️

Warn when using \ in config file field that expect a path.

@azure-sdk
Copy link
Collaborator

You can try these changes here

🛝 Playground 🌐 Website 📚 Next docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:core Issues for @typespec/compiler
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disallow backslash (windows path) in cadl config
3 participants