dart-sdk/pkg
Konstantin Shcheglov 833795d54c Enforce use_super_parameters in analysis_server/.
Change-Id: I834e56b62df36782772e299e4279c408e9f8ec0d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241241
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-04-15 18:13:44 +00:00
..
_fe_analyzer_shared Prepare to publish analyzer 4.0.0 and _fe_analyzer_shared 39.0.0 2022-04-13 19:36:53 +00:00
_js_interop_checks [dart2wasm] Add support for anonymous JS interop classes. 2022-04-12 22:51:02 +00:00
analysis_server Enforce use_super_parameters in analysis_server/. 2022-04-15 18:13:44 +00:00
analysis_server_client Switch to protocol version 1.33.0, enable new completion protocol. 2022-03-29 20:53:39 +00:00
analyzer Support for introspection of typeParameters, mixins, interfaces in ClassDeclaration. 2022-04-14 21:12:13 +00:00
analyzer_cli Restore sync file methods in AnalysisSession. 2022-03-21 23:27:57 +00:00
analyzer_plugin Breaking changes for analyzer version 4.0.0 2022-04-07 06:52:27 +00:00
analyzer_utilities Move pkg/analyzer_utilities to package:lints 2022-04-14 22:31:04 +00:00
async_helper Fix bug in Isolate.run. 2022-03-09 11:53:34 +00:00
build_integration
compiler [dart2js] Avoid some 'allowNull' options 2022-04-14 19:26:13 +00:00
dart2js_info [dart2js] Adding annotator layer to kernel dump info 2022-04-14 01:07:53 +00:00
dart2js_runtime_metrics
dart2js_tools
dart2native [pkg/dart2native] Create PE images with sizes that are section aligned. 2022-03-24 12:36:12 +00:00
dart2wasm [dart2wasm] Basic support for js interop annotations. 2022-04-12 18:26:02 +00:00
dart_internal [dart_internal] Support 2.18 2022-04-07 20:27:20 +00:00
dartdev update package:lints dep to 2.0.0 2022-03-18 19:55:51 +00:00
dds Move pkg/dds to package:lints. 2022-04-14 22:44:33 +00:00
dds_service_extensions
dev_compiler [modular_test] no longer generate .packages within modular test suites 2022-04-09 00:35:13 +00:00
expect Add myself to OWNERS in the various test packages. 2022-03-05 08:14:17 +00:00
front_end [cfe] Ensure default values are cloned in order of dependency 2022-04-12 20:31:42 +00:00
frontend_server Require '@dart = 2.15' for binary_protocol.dart 2022-04-13 20:51:33 +00:00
js
js_ast [js_ast] Fix migration mistake 2022-04-12 23:40:02 +00:00
js_runtime
kernel [cfe] Adjust nullability of FutureOr in ReplacementVisitor 2022-04-11 06:39:50 +00:00
language_versioning_2.7_test
meta
modular_test [modular_test] Remove uses of .packages altogether. 2022-04-09 00:35:13 +00:00
native_stack_traces lints 2.0 fixes 2022-03-17 23:41:27 +00:00
nnbd_migration Add a hint for final FieldFormalParameter and SuperFormalParameter 2022-04-10 18:11:00 +00:00
scrape
smith [infra] Remove references to unsupported ARMv6 and ARMv5TE. 2022-03-17 00:07:54 +00:00
sourcemap_testing
status_file Add myself to OWNERS in the various test packages. 2022-03-05 08:14:17 +00:00
telemetry
test_runner [vm, ffi] Callbacks on AOT RISC-V. 2022-04-05 18:23:03 +00:00
testing
vm Revert "[vm] Fix some async* semantics issues: Only run generator if there's active subscription (not paused/cancelled)" 2022-04-07 21:46:38 +00:00
vm_service [ package:vm_service ] Add external compilation service tests 2022-04-07 17:39:28 +00:00
vm_snapshot_analysis lints 2.0 fixes 2022-03-17 23:41:27 +00:00
wasm_builder [dart2wasm] Basic FFI support 2022-03-22 14:05:28 +00:00
.gitignore
BUILD.gn
OWNERS [test] Widen ownership of test status files. 2022-03-10 09:49:16 +00:00
pkg.status [ DDS ] Split DevTools server tests into smaller pieces 2022-04-04 22:07:21 +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