dart-sdk/pkg
Martin Kustermann e96765a388 Revert "Revert part of "Extract mmap support from dart2js into package:mmap""
This re-applies the changes that makes package:compiler use
package:mmap.

The flutter engine PR in [0] will land before this CL, making the
autoroller have no problems rolling this into engine.

We'll also try to land [1] to prepare this rolling into g3.

[0] https://github.com/flutter/engine/pull/39090
[1] https://critique.corp.google.com/cl/503931029

Change-Id: Ie9cefd716968de62a953b5634ad52e29d645e04f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/279507
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2023-01-24 11:14:38 +00:00
..
_fe_analyzer_shared Restore expectInferredType functionality for wildcard pattern tests. 2023-01-23 18:08:32 +00:00
_js_interop_checks [pkg:js] Add dart:_engine to denylist for top-level lowerings 2023-01-18 21:38:50 +00:00
analysis_server Revert "[analyzer] Move 4 more Hints to Warnings, OVERRIDE_ON_*" 2023-01-24 01:53:46 +00:00
analysis_server_client Spelling sdk 2023-01-20 12:37:49 +00:00
analyzer Revert "[analyzer] Move 4 more Hints to Warnings, OVERRIDE_ON_*" 2023-01-24 01:53:46 +00:00
analyzer_cli Generate a diagnostic for language overrides prior to 2.12 2023-01-10 05:27:48 +00:00
analyzer_plugin Support code completion in cast patterns 2023-01-24 00:22:32 +00:00
analyzer_utilities
async_helper
build_integration
compiler Revert "Revert part of "Extract mmap support from dart2js into package:mmap"" 2023-01-24 11:14:38 +00:00
dart2js_info Spelling tests 2023-01-19 16:24:29 +00:00
dart2js_runtime_metrics
dart2js_tools
dart2native
dart2wasm [dart2wasm] Add inline JS helper. 2023-01-23 19:33:34 +00:00
dart_internal
dartdev Spelling pkg 2023-01-19 10:06:29 +00:00
dds Spelling sdk 2023-01-20 12:37:49 +00:00
dds_service_extensions [pkg:dds, pkg:dds_service_extensions] Update pkg:vm_service dependency to ^10.0.0 2023-01-11 18:01:43 +00:00
dev_compiler [ddc] Cleanup old error message 2023-01-24 01:14:07 +00:00
expect
front_end [cfe] Handle extension access in object pattern (reprise) 2023-01-23 20:58:35 +00:00
frontend_server [ddc] Rename .dill files 2023-01-18 01:34:57 +00:00
js Spelling tests 2023-01-19 16:24:29 +00:00
js_ast
js_runtime
js_shared [dart2js] Basic records 2023-01-12 04:44:16 +00:00
kernel [cfe] Add class modifiers to AST and dill files. 2023-01-19 22:55:20 +00:00
language_versioning_2_7_test Generate a diagnostic for language overrides prior to 2.12 2023-01-10 05:27:48 +00:00
meta + @reopen 2023-01-23 21:33:53 +00:00
mmap Extract mmap support from dart2js into package:mmap 2023-01-23 09:10:23 +00:00
modular_test Spelling pkg 2023-01-19 10:06:29 +00:00
native_stack_traces
nnbd_migration Spelling build 2023-01-23 08:56:14 +00:00
scrape
smith
sourcemap_testing
status_file Spelling sdk 2023-01-20 12:37:49 +00:00
telemetry
test_runner [gardening] Mark vm/cc/ManyClasses as Slow on qemu bots. 2023-01-20 11:34:31 +00:00
testing
vm [vm/ffi] Support varargs 2023-01-20 10:30:41 +00:00
vm_service [VM/Service] Add private _getImplementationFields procedure 2023-01-23 21:07:23 +00:00
vm_snapshot_analysis Spelling tests 2023-01-19 16:24:29 +00:00
wasm_builder [dart2wasm] Improve Wasm stack error messages 2023-01-18 10:13:19 +00:00
.gitignore
BUILD.gn
OWNERS
pkg.status Extract mmap support from dart2js into package:mmap 2023-01-23 09:10:23 +00:00
README.md

Package validation

The packages in pkg/ are automatically validated on the LUCI CI bots. The validation is largely done by the tools/package_deps package; it can be tested locally via:

dart tools/package_deps/bin/package_deps.dart

Packages which are published

There are several packages developed in pkg/ which are published to pub. Validation of these packages is particularly important because the pub tools are not used for these packages during development; we get our dependency versions from the DEPS file. Its very easy for the dependencies specified in a package's pubspec file to get out of date wrt the packages and versions actually used.

In order to better ensure we're publishing correct packages, we validate some properties of the pubspec files on our CI system. These validations include:

  • that the dependencies listed in the pubspec are used in the package
  • that all the packages used by the source are listed in the pubspec
  • that we don't use relative path deps to pkg/ or third_party/ packages

Packages which are not published

For packages in pkg/ which we do not intend to be published, we put the following comment in the pubspec.yaml file:

# This package is not intended for consumption on pub.dev. DO NOT publish.
publish_to: none

These pubspecs are still validated by the package validation tool. The contents are more informational as the pubspecs for these packages are not consumed by the pub tool or ecosystem.

We validate:

  • that the dependencies listed in the pubspec are used in the package
  • that all the packages used by the source are listed in the pubspec
  • that a reference to a pkg/ package is done via a relative path dependency