This repository was archived by the owner on Nov 10, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
src/com/facebook/buck/parser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ public ProjectBuildFileParser createFileParser(
9898 knownRuleTypesProvider .getNativeRuleTypes (cell ).getPerFeatureProviders ())
9999 .setWatchman (watchman )
100100 .setWatchmanQueryTimeoutMs (parserConfig .getWatchmanQueryTimeoutMs ())
101+ .setEdenClient (edenClient )
101102 .setRawConfig (
102103 cell .getBuckConfig ().getView (ConfigIgnoredByDaemon .class ).getRawConfigForParser ())
103104 .setImplicitNativeRulesState (parserConfig .getImplicitNativeRulesState ())
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ java_immutables_library(
1616 "//src/com/facebook/buck/io/watchman:watchman" ,
1717 "//src/com/facebook/buck/util:util" ,
1818 "//third-party/java/guava:guava" ,
19+ "//src/com/facebook/buck/edenfs:edenfs" ,
1920 ],
2021 exported_deps = [
2122 "//src/com/facebook/buck/parser/implicit:implicit" ,
Original file line number Diff line number Diff line change 2222import com .facebook .buck .core .filesystems .FileName ;
2323import com .facebook .buck .core .rules .providers .impl .BuiltInProvider ;
2424import com .facebook .buck .core .util .immutables .BuckStyleValueWithBuilder ;
25+ import com .facebook .buck .edenfs .EdenClientResourcePool ;
2526import com .facebook .buck .io .file .PathMatcher ;
2627import com .facebook .buck .io .watchman .Watchman ;
2728import com .facebook .buck .io .watchman .WatchmanError ;
3536import org .immutables .value .Value ;
3637
3738@ BuckStyleValueWithBuilder
39+ @ SuppressWarnings ("immutables:untype" )
3840public abstract class ProjectBuildFileParserOptions {
3941 public abstract AbsPath getProjectRoot ();
4042
@@ -72,6 +74,11 @@ public Watchman getWatchman() {
7274
7375 public abstract Optional <Long > getWatchmanQueryTimeoutMs ();
7476
77+ @ Value .Default
78+ public Optional <EdenClientResourcePool > getEdenClient () {
79+ return Optional .empty ();
80+ }
81+
7582 public abstract ImmutableSet <BuiltInProvider <?>> getPerFeatureProviders ();
7683
7784 @ Value .Default
You can’t perform that action at this time.
0 commit comments