-
Notifications
You must be signed in to change notification settings - Fork 146
Description
When I want to run the build runner and generate the sources, the object box generator fails with a HandshakeException and no sources are generated:
[INFO] Generating build script completed, took 174ms
[INFO] Reading cached asset graph completed, took 1.0s
[INFO] Checking for updates since last build completed, took 759ms
[INFO] Running build completed, took 34ms
[INFO] Caching finalized dependency graph completed, took 374ms
[SEVERE] objectbox_generator:generator on lib/$lib$ (cached):
HandshakeException: Handshake error in client (OS Error:
CERTIFICATE_VERIFY_FAILED: application verification failure(handshake.cc:393))
[SEVERE] Failed after 414ms
After some inspection of the generator code I could work around it by editing the analysis.dart and add a return null;
at the beginning of sendEvent
.
The Build should not depend on external resources, especially tracking pages.
In many enterprise environments build and developer systems are limited and have no or restricted internet access. In my case the internet access is scanned by an interception proxy breaking the TLS traffic.
Basic info:
- ObjectBox version: 2.0.0
- Flutter/Dart SDK: Flutter 3.10.2 / Dart 3.0.2
- Reproducible: always
- Build OS: macOS 13.4
- Deployment device or OS: None
Steps to reproduce
- Block internet access or intercept TLS Traffic
- Run the build runner
Expected behavior
Access to unnecessary external resources should not fail the build process.
Tracking should be opt-in by GDPR (and the german DSGVO) Law and is not allowed to be always active without user input.