-
-
Notifications
You must be signed in to change notification settings - Fork 30
feat: Glob validation for Node/WASM bindings #87
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
feat: Glob validation for Node/WASM bindings #87
Conversation
|
Since this is branched off from #86, I've marked it as a draft until this is merged. I'll then rebase this PR and mark it as being ready for review. |
8c6a2e0 to
92c10f5
Compare
92c10f5 to
57fa92f
Compare
|
The PR itself looks reasonable. Given the number of "globbing doesn't work exactly the same as GitHub's" issues that have been filed, I can't help but wonder: how similar are the matching semantics of the JS To clarify, I'm not against merging this as-is, I guess I just want to know what to expect in the issue tracker once this lands. |
9b91771 to
57fa92f
Compare
Good question! I have added some tests based on GitHub's documentation for their "filter patterns" (see https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#filter-pattern-cheat-sheet). As far as I can tell, the behavior is the same for As it stands, it seems most of the GitHub syntax is supported by both AV native and node, which I've asserted with the addition of this test. Currently supported:
I've also added a test for rejecting extended gitignore syntax, but this is currently ignored when running |
No, our globbing support is already at odds with GitHub's; "differently broken" isn't a blocker, I just like to know what to say when the next round of "this globbing corner case doesn't work" issues come in. |
This PR implements glob validation for the Node/WASM bindings. Currently this is achieved using the existing mechanism for accessing system functions instead of one of the approaches described in #40.