Skip to content

[native assets] dart test with pub workspaces #60489

Closed
@dcharkes

Description

@dcharkes

https://github.com/dart-lang/native/actions/runs/14316483742/job/40123703746?pr=2178

Run dart --enable-experiment=native-assets test

❌ test/add_test.dart: invoke native function (failed)
  Invalid argument(s): Couldn't resolve native function 'add' in 'package:native_dynamic_linking_example/add.dart' : No asset with id 'package:native_dynamic_linking_example/add.dart' found. No available native assets. Attempted to fallback to process lookup. dlsym(RTLD_DEFAULT, add): symbol not found.
  
  dart:ffi                                         Native._ffi_resolver_function
  package:native_dynamic_linking_example/add.dart  add
  test/add_test.dart [10](https://github.com/dart-lang/native/actions/runs/14316483742/job/40123703746?pr=2178#step:12:11):12                         main.<fn>

The hook is being invoked and the assets are being built.

No available native assets.

However, the native_assets.yaml is not being used.

Metadata

Metadata

Assignees

Labels

area-native-interopUsed for native interop related issues, including FFI.

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions