google / google/dart_cli_pkg

Dart Build Hooks Support

Open
#194 9 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Dart
Stars
64
Forks
25
Avg merge
3d 20h
Merged PRs (30d)
10

Description

Dart recently added support for [build hooks](https://dart.dev/tools/hooks) in version 3.10. However, there isn't a clear way/path for working with or supporting build hook artifacts during CLI distribution using this package.

I have been working on a Dart CLI application that would benefit from the use of the new build hooks feature (or at least some method of distributing compiled library code alongside my Dart CLI application), but I have been blocked on that aspect because I have setup and will be using this package for distributing the application once built.

It would be much appreciated if there can be a way, or at least some guidance, as to how to support build artifacts in cli_pkg pipelines. Since there is unfortunately no support for static linking (dart-lang/sdk#47718), then the compiled libraries have to be placed in a path accessible to the binary tool. Filed an issue that should be somewhat connected via https://github.com/dart-lang/native/issues/3239

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.