You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to refer to a root folder in my ignore globs in a platform independent way. I assumed that I could use the glob '/exclude/**' but unfortunately, that doesn't work on Windows.
On Windows, I need to use '//?/C:/exclude/**', I would prefer to use '/exclude/**' on both Windows and Linux.
What is odd is that include globs starting with '/' to refer to the root work fine on Windows, it only doesn't work for ignore globs.
Are there any GlobOptions I'm overlooking that will allow '/exclude/**' to work on Windows?
The text was updated successfully, but these errors were encountered:
In the short term as a hacky workaround, you could implement your own IgnoreLike object to do whatever you want, but that's klunky af and not very well documented. It does work tho, and I'm relying on it in other places, so it's unlikely to break inside a major version.
Maybe minimatch needs a "matchRoot":true option or something, so that /x/* would match C:\x\y on windows.
I would like to refer to a root folder in my ignore globs in a platform independent way. I assumed that I could use the glob
'/exclude/**'
but unfortunately, that doesn't work on Windows.On Windows, I need to use
'//?/C:/exclude/**'
, I would prefer to use'/exclude/**'
on both Windows and Linux.What is odd is that include globs starting with
'/'
to refer to the root work fine on Windows, it only doesn't work for ignore globs.Are there any
GlobOptions
I'm overlooking that will allow'/exclude/**'
to work on Windows?The text was updated successfully, but these errors were encountered: