Description
It is my first time using drift, and I am running into an issue while setting up the package. Whenever I run the build hooks on my Windows PC, the process fails with a HandshakeException (CERTIFICATE_VERIFY_FAILED).
This error occurs when the source in pubspec.yaml is set to either sqlite3mc or sqlite3. I also tried using the encrypted_drift alternative, but I still get the exact same handshake error.
Environment
- OS: Windows 10 Pro 64-bit (22H2, 2009)
- Flutter Version: 3.41.4 (Channel stable)
- Dart Version: ^3.11.1
- Drift Version: ^2.32.0
pubspec.yaml setup
name: demo_project
description: "Replicating running build hooks error"
publish_to: 'none'
version: 0.1.0+1
environment:
sdk: ^3.11.1
dependencies:
flutter:
sdk: flutter
drift: ^2.32.0
drift_flutter: ^0.3.0
path_provider: ^2.1.5
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^6.0.0
drift_dev: ^2.32.0
build_runner: ^2.11.1
hooks:
user_defines:
sqlite3:
source: sqlite3mc
flutter:
uses-material-design: true
### When running dart run build_runner build, I receive the following output:
```Executing task: C:\flutter\bin\cache\dart-sdk\bin\dart.exe run build_runner build
Building package executable... (16.4s)
Built build_runner:build_runner.
16s compiling builders/jit
Running build hooks...Unhandled exception:
HandshakeException: Handshake error in client (OS Error:
CERTIFICATE_VERIFY_FAILED: unable to get local issuer certificate(../../third_party/boringssl/src/ssl/handshake.cc:298))
#0 _SecureFilterImpl._handshake (dart:io-patch/secure_socket_patch.dart:101:46)
simolus3/drift#1 _SecureFilterImpl.handshake (dart:io-patch/secure_socket_patch.dart:146:25)
simolus3/drift#2 _RawSecureSocket._secureHandshake (dart:io/secure_socket.dart:994:54)
simolus3/drift#3 _RawSecureSocket._tryFilter (dart:io/secure_socket.dart:1124:19)
<asynchronous suspension>
Building assets for package:sqlite3 failed.
build.dart returned with exit code: 255.
Description
It is my first time using drift, and I am running into an issue while setting up the package. Whenever I run the build hooks on my Windows PC, the process fails with a
HandshakeException(CERTIFICATE_VERIFY_FAILED).This error occurs when the
sourceinpubspec.yamlis set to eithersqlite3mcorsqlite3. I also tried using theencrypted_driftalternative, but I still get the exact same handshake error.Environment
pubspec.yaml setup