dart-sdk/pkg
Konstantin Shcheglov d8e2cdaeec Report WRONG_NUMBER_OF_TYPE_ARGUMENTS_ENUM and TYPE_ARGUMENT_NOT_MATCHING_BOUNDS for enums.
Change-Id: Icac828fa09d7565974727521c27b5cd4daa7e0f4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/232089
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-02-08 19:50:36 +00:00
..
_fe_analyzer_shared Updates to the macro type instantiation apis based on feedback. 2022-02-04 21:54:59 +00:00
_js_interop_checks [pkg:js] Filter synthetic procedures from static interop errors 2021-12-10 18:36:00 +00:00
analysis_server [analysis_server] Reduce the scope of a non-null-assertion to prevent errors during large renames 2022-02-08 16:47:56 +00:00
analysis_server_client Add CompletionSuggestion.libraryUri, keep isNotImported. 2022-02-04 22:49:10 +00:00
analyzer Report WRONG_NUMBER_OF_TYPE_ARGUMENTS_ENUM and TYPE_ARGUMENT_NOT_MATCHING_BOUNDS for enums. 2022-02-08 19:50:36 +00:00
analyzer_cli [analyzer] remove the dep on package:cli_util 2022-02-06 05:26:40 +00:00
analyzer_plugin Update outdated old or removed dart.dev links 2022-02-08 19:29:56 +00:00
analyzer_utilities Add includesAllInOrder() check. 2022-01-28 04:28:31 +00:00
async_helper Simplify asyncExpectThrows and enhance Expect.throws. 2022-01-06 17:06:47 +00:00
build_integration
compiler Update outdated old or removed dart.dev links 2022-02-08 19:29:56 +00:00
dart2js_info [dart2js] Adding initial tooling support for runtime code analysis. 2022-01-21 18:53:51 +00:00
dart2js_runtime_metrics
dart2js_tools [dart2js] Migrate dart2js_tools to null safety 2021-10-08 23:54:54 +00:00
dart2native [vm] Bump max ELF page size to 64K 2021-11-16 16:23:36 +00:00
dart_internal [release] Update changelog for dart_internal 2022-01-26 15:13:26 +00:00
dartdev Add missing 'help' option to DevTools server arg parser. 2022-02-08 19:15:56 +00:00
dds Add missing 'help' option to DevTools server arg parser. 2022-02-08 19:15:56 +00:00
dds_service_extensions Add license file to dds_service_extensions 2022-01-12 17:39:33 +00:00
dev_compiler [ddc] Cleanup non-nullable experiment flag 2022-02-07 19:03:25 +00:00
diagnostic master branch to main 2021-09-15 06:22:23 +00:00
expect [gardening] Fix env_test/has_mirror_support. 2022-01-14 23:33:11 +00:00
front_end [cfe/ffi] Implement Finalizable 2022-02-05 11:54:59 +00:00
frontend_server [vm, cfe] Add an option to include extra source files into kernel compilation 2022-02-04 15:23:39 +00:00
js [pkg:js] Update CHANGELOG, README, and WORKAROUNDS 2021-12-16 03:11:57 +00:00
js_ast [js_ast] Split VariableInitialization from Assignment 2022-01-05 17:50:04 +00:00
js_runtime
kernel [vm] Improve async performance by taking advantage of static types of returned values 2022-02-04 22:06:59 +00:00
language_versioning_2.7_test
meta Fix a typo 2021-12-02 11:37:31 +00:00
modular_test [gardening] Fix env_test/has_mirror_support. 2022-01-14 23:33:11 +00:00
native_stack_traces [pkg/native_stack_traces] Bump version number for publishing. 2022-01-03 13:04:25 +00:00
nnbd_migration Stop storing contextual information on ArgumentList nodes. 2022-02-01 23:54:05 +00:00
scrape Script to scrape corpus to evaluate "super." parameter proposals. 2021-10-01 18:54:48 +00:00
smith [vm] Support RISC-V. 2022-01-20 00:57:57 +00:00
sourcemap_testing
status_file [test] Inform status files about the new simulated architectures. 2022-02-03 20:32:16 +00:00
telemetry telemetry: Use the new strict-casts instead of deprecated no-implicit-casts 2021-12-20 22:33:43 +00:00
test_runner [test_runner]: remove uses of dartdevc script in test_runner. 2022-01-27 21:13:41 +00:00
testing Replace a bunch of references to .packages 2021-10-12 20:16:15 +00:00
vm [cfe/ffi] Implement Finalizable 2022-02-05 11:54:59 +00:00
vm_service Add script location to generated code message 2022-02-08 19:44:40 +00:00
vm_snapshot_analysis Make dominator nullable. 2022-01-31 21:26:14 +00:00
.gitignore Ignore .dart_tool and .packages in pkg dir 2021-09-24 15:22:08 +00:00
BUILD.gn
pkg.status [test] Inform status files about the new simulated architectures. 2022-02-03 20:32:16 +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