Repository navigation
Support standalone AOT CLI execution under dart install - #215
Merged
Merged
Conversation
….tar.gz After merging master (v1.37.1, updated template archive), re-run `tool/embed_template.dart` so `bones_api_template_data.dart` matches the archive on disk again (checked by `bones_api_cli_template_test.dart`). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Thanks for the PR and for taking the time to improve |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #215 +/- ##
==========================================
- Coverage 96.00% 95.96% -0.05%
==========================================
Files 75 76 +1
Lines 26042 26046 +4
==========================================
- Hits 25001 24994 -7
- Misses 1041 1052 +11
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
- `bin/bones_api.dart`: doc comments for `_isRunningInJITVM`, `normalizeProjectDirectoryPath`, `resolveForwardedApiConfig`, `resolveForwardedDomains` and `DefaultTemplate` (why each exists and where it is used); explain the swallowed package-URI resolution error. - Version 1.38.0 (`pubspec.yaml`, `BonesAPI.VERSION`) + CHANGELOG entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Regenerated with `update_project_template.sh` (archive + embedded data): memory API config fixed (`sql.memory`, adapters booted), new SQLite configs, `generate_tables_sql.dart` exits. CHANGELOG (1.38.0) updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Merged and released. Published |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As part of preparing ecosystem CLIs for
dart install/dart run <pkg>@(see dart-lang/sdk#64955):Running
bones_apias a standalone AOT executable (dart install bones_apiordart run bones_api@) previously failed at startup becauseDefaultTemplate.configure()unconditionally resolvedpackage:bones_api/src/template/bones_api_template.tar.gzto a local file path.Changes:
bones_api_template.tar.gzinlib/src/template/bones_api_template_data.dart(kept in sync bytool/embed_template.dart/update_project_template.shand verified against the archive on disk) and load it directly in memory viaStorageTarGzip.fromCompressedwhen no on-disk file URI is available.dartVM in the target project directory forbones_api serveandbones_api consolewhen running outside a JIT VM (whereIsolate.spawnUriis unavailable), normalizing relative--directory,--config,--lets-encrypt-dir, and--domainpaths before changing working directories.