-
Notifications
You must be signed in to change notification settings - Fork 18
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 for multiple root directories when scanning for fence files #91
Allow for multiple root directories when scanning for fence files #91
Conversation
@Adjective-Object Is there a reason to prefer multiple root directories as opposed to adding an option to exclude directories? The latter seems more intuitive to me, and more in line with something like I'm imagining an optional |
Do you feel strongly about having an ignore file over a list of includes? As much as I like the aesthetics of .ignore files:
|
src/utils/getOptions.ts
Outdated
import RawOptions from '../types/RawOptions'; | ||
import Options from '../types/Options'; | ||
import normalizePath from './normalizePath'; | ||
import RawOptions from "../types/RawOptions"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like I don't have prettier configured in this repo yet. For my sanity, can you use single quotes for all the string literals in this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you beat me to it!
…ct/good-fences into u/mahuangh/multiple-roots
Motivation
In owa, we currently rely on excluding the node_modules directory.
This works fine under current usage, but BuildXL by convention stores state in the Out directory, which stores unique logs across multiple runs -- this was causing good-fences to take upwards of 20 minutes on subsequent runs.
By specifying the rootDirs as
packages
andshared
instead of relying on traversing from the common directory.
, we speed up good-fences (and avoid transient read errors caused by files being deleted out from under good-fences as it traverses BuildXL's internal state).Changes