Describe the bug
webcrypto.dart has migrated to native_toolchain_cmake in its latest release. Build fails in my app CI system since then.
Unhandled exception:
Bad state: No element
#0 List.first (dart:core-patch/growable_array.dart:352:5)
#1 RunCMakeBuilder.androidToolchainCmake (package:native_toolchain_cmake/src/builder/run_builder.dart:126:27)
<asynchronous suspension>
#2 RunCMakeBuilder._generateAndroidDefines (package:native_toolchain_cmake/src/builder/run_builder.dart:326:23)
<asynchronous suspension>
#3 RunCMakeBuilder._generate (package:native_toolchain_cmake/src/builder/run_builder.dart:195:21)
<asynchronous suspension>
#4 RunCMakeBuilder.run (package:native_toolchain_cmake/src/builder/run_builder.dart:177:22)
<asynchronous suspension>
#5 CMakeBuilder.run (package:native_toolchain_cmake/src/builder/builder.dart:344:5)
<asynchronous suspension>
#6 main.<anonymous closure> (file:///home/build/.pub-cache/hosted/pub.dev/webcrypto-0.6.1/hook/build.dart:52:5)
<asynchronous suspension>
#7 build (package:hooks/src/api/build_and_link.dart:191:5)
<asynchronous suspension>
#8 main (file:///home/build/.pub-cache/hosted/pub.dev/webcrypto-0.6.1/hook/build.dart:24:3)
<asynchronous suspension>
Building assets for package:webcrypto failed.
build.dart returned with exit code: 255.
Exception comes from this line:
|
final toolUri = tool?.first.uri.resolve('build/cmake/android.toolchain.cmake'); |
To Reproduce
- Build Goguma with https://codeberg.org/emersion/goguma/pulls/364
Expected behavior
Build should not fail (or should report a clear error describing what's wrong).
Desktop (please complete the following information):
Smartphone (please complete the following information): N/A
Additional context
Full logs: https://builds.sr.ht/~emersion/job/1764286#task-build
Describe the bug
webcrypto.darthas migrated tonative_toolchain_cmakein its latest release. Build fails in my app CI system since then.Exception comes from this line:
native_toolchain_cmake/lib/src/builder/run_builder.dart
Line 126 in f267613
To Reproduce
Expected behavior
Build should not fail (or should report a clear error describing what's wrong).
Desktop (please complete the following information):
Smartphone (please complete the following information): N/A
Additional context
Full logs: https://builds.sr.ht/~emersion/job/1764286#task-build