dart-sdk/pkg
Konstantin Shcheglov 9cbe1cafe0 Element.session can be nullable
This is not convenient, and not nice, but it can be.
We have to accept that it can for now, and plan to make it better.

Bug: https://github.com/dart-lang/sdk/issues/44837
Change-Id: Icbd2d55b6690ed817b38a7768198c41ce36cf002
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/182960
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-02-04 22:02:29 +00:00
..
_fe_analyzer_shared [parser] Non-crashing recovery of in-progress generification of typedef 2021-02-04 08:01:07 +00:00
_js_interop_checks [package:js] Added checks for external non-JS members. 2021-02-03 02:14:18 +00:00
analysis_server Use line number to compute fixes, Cider provides line and column number. 2021-02-04 19:16:27 +00:00
analysis_server_client Add Element.aliasedType to the protocol. 2021-01-27 23:27:21 +00:00
analyzer Element.session can be nullable 2021-02-04 22:02:29 +00:00
analyzer_cli Migrate package:analyzer to null safety. 2021-02-01 18:56:04 +00:00
analyzer_plugin Update DartEditBuilderImpl.writeType() to support type aliases. 2021-02-04 00:23:29 +00:00
analyzer_utilities [sdk] Bump version to 2.13 2021-02-04 12:10:17 +00:00
async_helper [sdk] Bump version to 2.13 2021-02-04 12:10:17 +00:00
build_integration Add additional validations to the pkg/ package pubspecs. 2020-12-02 17:27:18 +00:00
compiler Revert submission 181620 2021-02-03 10:52:38 +00:00
dart2js_tools
dart2native Add --[no-]sound-null-safety option to dart2native and dart compile exe 2021-01-26 19:16:30 +00:00
dart_internal Support the latest SDK with pkg:dart_internal 2020-11-02 21:51:39 +00:00
dartdev Add --[no-]sound-null-safety option to dart2native and dart compile exe 2021-01-26 19:16:30 +00:00
dds [ DDS ] Update package:vm_service dep to 6.0.1-nullsafety.0 2021-01-22 22:03:07 +00:00
dev_compiler [ddc] Merge remaining diffs in dart_library.js 2021-02-01 19:55:49 +00:00
diagnostic
expect [sdk] Bump version to 2.13 2021-02-04 12:10:17 +00:00
front_end [cfe] Add Function.futureValueType and serialize Let.fileOffset 2021-02-04 14:06:47 +00:00
frontend_server [frontend_server] Export to_string_transformer from frontend_server.dart 2021-01-15 14:13:28 +00:00
js Prepare to publish js and meta for null safety 2021-02-02 21:33:17 +00:00
js_ast [dart2js/js_ast] cleanup: Simplify LiteralExpression 2021-01-12 01:28:10 +00:00
js_runtime [dart2js] make js_runtime a proper package 2021-01-25 22:39:23 +00:00
kernel [cfe] Add Function.futureValueType and serialize Let.fileOffset 2021-02-04 14:06:47 +00:00
language_versioning_2.7_test
meta Prepare to publish js and meta for null safety 2021-02-02 21:33:17 +00:00
modular_test Prepare for switching to null safe package_config 2021-01-21 05:04:33 +00:00
native_stack_traces Roll args and dart2js_info into the SDK. 2020-12-04 22:58:22 +00:00
nnbd_migration Stop using FunctionTypeAliasElement in nnbd_migration. 2021-02-03 20:41:19 +00:00
scrape Add a script to scrape string literal quotation data. 2020-12-11 00:13:08 +00:00
smith [infra] Add new compressed architectures to the test matrix. 2021-02-04 17:44:37 +00:00
sourcemap_testing Update List constructor documentation, deprecate constructor. 2020-12-07 16:20:28 +00:00
status_file Update List constructor documentation, deprecate constructor. 2020-12-07 16:20:28 +00:00
telemetry telemetry: Remove unnecessary imports 2020-12-30 22:38:50 +00:00
test_runner [infra] Disallow spaces in test configuration names 2021-01-29 14:55:56 +00:00
testing [CFE] Shard front-end try bots better 2021-01-28 14:16:25 +00:00
vm [vm/ffi] Remove .ref VM runtime entry 2021-02-04 21:31:29 +00:00
vm_service [ package:vm_service ] Fix issue where null was returned instead of @Instance of type Null 2021-02-03 21:10:28 +00:00
vm_snapshot_analysis Update List constructor documentation, deprecate constructor. 2020-12-07 16:20:28 +00:00
wasm Setup script for package:wasm that builds the Wasmer runtime library. 2021-01-22 20:48:04 +00:00
.gitignore
BUILD.gn
pkg.status [SDK] Removes non-exiting tests from .status 2021-02-04 06:46:13 +00:00
README.md Add additional validations to the pkg/ package pubspecs. 2020-12-02 17:27:18 +00:00

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