turborepo
53d6fb5c - fix support bracket filepaths (#6877)

Commit
2 years ago
fix support bracket filepaths (#6877) ### Description Fixes #6855 Since we currently construct a glob *after* joining the base path with the inclusion glob if there are special characters they can have unintended meaning and produce incorrect results. We already did a similar thing with `:` as they appear in Windows paths in the drive names. The list of special characters comes from wax's [token/parse.rs](https://github.com/vercel/turbo/blob/main/crates/turborepo-wax/src/token/parse.rs#L245) Future work might be using [`Glob::partition`](https://docs.rs/wax/latest/wax/struct.Glob.html#method.partition) or adding the path as part of the glob and instead relying on the `base_path` argument for `Glob::walk`. ### Testing Instructions Added unit tests for all special character globs. `turbo build` now works with the reproduction provided in the linked issue. Closes TURBO-1983
Parents
Loading