-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Allow dots in bin names #7811
Allow dots in bin names #7811
Conversation
@Just-Zach regex has |
Colons are not allowed in file names on Windows, so not sure if this is a good idea. |
@Just-Zach @BYK from the docs it seems that it should be able to create a symlink using name provided a bin |
Yep colons aren't safe - can you also check against special cases ( |
The |
Worth noting for future people coming here that |
* Fixed bin regex * Removed unsupported by Windows colon from bin regex * Updated normalize-manifest tests * Update fix.js * Update actual.json * Update normalize-manifest.js.snap Co-authored-by: Maël Nison <nison.mael@gmail.com>
* Fixed bin regex * Removed unsupported by Windows colon from bin regex * Updated normalize-manifest tests * Update fix.js * Update actual.json * Update normalize-manifest.js.snap Co-authored-by: Maël Nison <nison.mael@gmail.com>
- using 1.19.2 as primary version; 1.22.5 has "invalid 'bin'" issues - ref: yarnpkg/yarn#7755 - ref: yarnpkg/yarn#7811 - but... *still* a problem even after PR#7811
- using 1.19.2 as primary version; 1.22.5 has "invalid 'bin'" issues - ref: yarnpkg/yarn#7755 - ref: yarnpkg/yarn#7811 - but... *still* a problem even after PR#7811
Summary
Bin regex is too restrictive at the moment. See comments here.
Test plan
Use
dangerous bin name
tests.