Skip to content

Use dart build cli for integration test executable - #4888

Open
mosuem wants to merge 1 commit into
masterfrom
use-dart-build-cli
Open

Use dart build cli for integration test executable#4888
mosuem wants to merge 1 commit into
masterfrom
use-dart-build-cli

Conversation

@mosuem

@mosuem mosuem commented Aug 25, 2026

Copy link
Copy Markdown
Member

Waiting for https://dart-review.googlesource.com/c/sdk/+/542720

This PR replaces the legacy dart --snapshot step with dart build cli.

  • Uses dart build cli -t bin/pub.dart -o .dart_tool/_pub_build to create an AOT-compiled CLI bundle for integration tests.
  • Automatically compiles and bundles Native Assets (e.g. package:sigstore dynamic libraries) in bundle/lib/.
  • Updates test/test_pub.dart to support directly executing the precompiled binary.
  • Updates tool/test.dart and GitHub Actions CI workflow to use dart build cli.

@mosuem
mosuem force-pushed the use-dart-build-cli branch 10 times, most recently from 8cd7afb to 8966a9f Compare August 28, 2026 09:54
- Use `dart build cli` to build a standalone pub executable and bundle native assets for integration tests.
- Support running binary executable in `test/test_pub.dart`.
- Update `tool/test.dart` and CI test workflow to compile using `dart build cli`.
@mosuem
mosuem force-pushed the use-dart-build-cli branch from 8966a9f to aaf5234 Compare August 28, 2026 11:14
@mosuem
mosuem requested a review from sigurdm August 28, 2026 12:49
@mosuem
mosuem marked this pull request as ready for review August 28, 2026 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant