selenium-manager: disable telemetry

This commit is contained in:
Robert Schütz
2025-02-09 13:09:21 -08:00
parent 5f9c18f849
commit c84f230783
2 changed files with 20 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
diff --git a/rust/src/config.rs b/rust/src/config.rs
index f7cd4f32ec..ec454127be 100644
--- a/rust/src/config.rs
+++ b/rust/src/config.rs
@@ -120,7 +120,7 @@ impl ManagerConfig {
avoid_browser_download: BooleanKey("avoid-browser-download", false).get_value(),
language_binding: StringKey(vec!["language-binding"], "").get_value(),
selenium_version: StringKey(vec!["selenium-version"], "").get_value(),
- avoid_stats: BooleanKey("avoid-stats", false).get_value(),
+ avoid_stats: BooleanKey("avoid-stats", true).get_value(),
skip_driver_in_path: BooleanKey("skip-driver-in-path", false).get_value(),
skip_browser_in_path: BooleanKey("skip-browser-in-path", false).get_value(),
}

View File

@@ -16,7 +16,13 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-b5xwuZ4lcwLbGhJuEmHYrFXoaTW/M0ABdK3dvbpj8oM=";
};
sourceRoot = "${src.name}/rust";
patches = [
./disable-telemetry.patch
];
postPatch = ''
cd rust
'';
useFetchCargoVendor = true;
cargoHash = "sha256-hXtF3qFzzM2TqpEP9JWdi7uU5TgFHF9lZO5bmZcEuDk=";