dart-sdk/pkg
Konstantin Shcheglov ad895e20d2 Get workspace from AnalysisSession in AbstractLinterContextTest.
R=brianwilkerson@google.com, pquitslund@google.com

Change-Id: I46eb8b0cd0193f048e95d921bd555dd22132d271
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199322
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-05-11 18:50:15 +00:00
..
_fe_analyzer_shared [parser] Don't use potential type arguments if they came via recovery 2021-05-03 07:30:28 +00:00
_js_interop_checks Revert "Optimize js_util setProperty calls for non-function value types." 2021-04-22 09:27:29 +00:00
analysis_server Generate State<MyWidget> as 'createState()'. 2021-05-09 19:55:08 +00:00
analysis_server_client Add getParsedLibrary2(), deprecate getParsedLibrary() and other parse related 2021-04-19 15:52:39 +00:00
analyzer Get workspace from AnalysisSession in AbstractLinterContextTest. 2021-05-11 18:50:15 +00:00
analyzer_cli Fix PathFilter created when the analysis options file with excludes is not in the context root. 2021-04-28 16:48:13 +00:00
analyzer_plugin Make local variables that hide fields be final (analyzer_plugins) 2021-04-24 18:04:12 +00:00
analyzer_utilities Add getParsedLibrary2(), deprecate getParsedLibrary() and other parse related 2021-04-19 15:52:39 +00:00
async_helper Update LICENSE 2021-04-07 10:28:38 +00:00
build_integration Update LICENSE 2021-04-07 10:28:38 +00:00
compiler [dart2js] js_ast.Name does not need to be Comparable 2021-05-11 01:53:33 +00:00
dart2js_tools
dart2native Increase alignment when concatenating AOT runtime and ELF snapshots. 2021-04-19 22:55:39 +00:00
dart_internal pkg:dart_internal bump support Dart SDK version 2021-04-20 16:24:28 +00:00
dartdev Reland "[ VM / DDS / CLI ] Add DevTools support to the standalone VM" 2021-05-11 17:55:26 +00:00
dds Reland "[ VM / DDS / CLI ] Add DevTools support to the standalone VM" 2021-05-11 17:55:26 +00:00
dev_compiler [ddc] Avoid collision of a top-level function name with parameter names. 2021-05-06 18:06:05 +00:00
diagnostic Update LICENSE 2021-04-07 10:28:38 +00:00
expect [vm] Add --resolve-dwarf-paths (disabled by default). 2021-04-26 11:44:47 +00:00
front_end Change parameters named f to something longer on Iterable. 2021-05-10 15:03:20 +00:00
frontend_server [kernel] Make FileUriNode.fileUri non-nullable 2021-04-19 08:03:30 +00:00
js Update LICENSE 2021-04-07 10:28:38 +00:00
js_ast [dart2js] js_ast.Name does not need to be Comparable 2021-05-11 01:53:33 +00:00
js_runtime [dart2js] Remove old-rti substitution property from namer 2021-04-15 04:46:56 +00:00
kernel [cfe] Add flags field to Extension and use it for 'extension type' 2021-05-11 10:15:43 +00:00
language_versioning_2.7_test
meta Document same-library access for protected members 2021-05-06 22:53:54 +00:00
modular_test
native_stack_traces [vm] Fix handling of WeakSerializationReferences in v8 profile. 2021-05-11 11:21:44 +00:00
nnbd_migration Migration: tolerate relative imports into lib. 2021-04-21 22:04:30 +00:00
scrape remove unnecessary parens in string interp 2021-03-25 22:24:34 +00:00
smith [infra] Add new compressed architectures to the test matrix. 2021-02-04 17:44:37 +00:00
sourcemap_testing
status_file Don't truncate command output in the test runner. 2021-04-07 23:42:38 +00:00
telemetry Update LICENSE 2021-04-07 10:28:38 +00:00
test_runner Add a tool to detect orphaned Dart files in "test/". 2021-05-11 01:23:03 +00:00
testing [CFE] Make fuzz testing work also when not skipping VM 2021-03-22 10:12:52 +00:00
vm [vm/aot] Fix handling of annotations in tree shaker 2021-05-11 18:25:24 +00:00
vm_service fix: Context parse error, parent should be ContextRef 2021-05-11 17:59:54 +00:00
vm_snapshot_analysis [vm_snapshot_analysis] Bump version number 2021-04-22 20:55:46 +00:00
wasm Update LICENSE 2021-04-07 10:28:38 +00:00
.gitignore
BUILD.gn Reapply "[build] Don't list Dart sources up front when creating application snapshots." 2021-04-27 17:22:54 +00:00
pkg.status [test] Apply simarm64 status file entries to simarm64c. 2021-02-25 21:18:02 +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