tree: 3c78bc6064fee65ffe1a0edb9ce1fb7e3a5c9914 [path history] [tgz]
  1. _fe_analyzer_shared/
  2. _js_interop_checks/
  3. analysis_server/
  4. analysis_server_client/
  5. analyzer/
  6. analyzer_cli/
  7. analyzer_plugin/
  8. analyzer_utilities/
  9. async_helper/
  10. bisect_dart/
  11. build_integration/
  12. compiler/
  13. dart2js_info/
  14. dart2js_runtime_metrics/
  15. dart2js_tools/
  16. dart2native/
  17. dart2wasm/
  18. dart_internal/
  19. dart_service_protocol_shared/
  20. dartdev/
  21. dds/
  22. dds_service_extensions/
  23. dev_compiler/
  24. dtd/
  25. dtd_impl/
  26. expect/
  27. front_end/
  28. frontend_server/
  29. heap_snapshot/
  30. js/
  31. js_ast/
  32. js_runtime/
  33. js_shared/
  34. kernel/
  35. language_versioning_2_12_test/
  36. linter/
  37. meta/
  38. mmap/
  39. modular_test/
  40. native_stack_traces/
  41. scrape/
  42. smith/
  43. sourcemap_testing/
  44. status_file/
  45. telemetry/
  46. test_runner/
  47. testing/
  48. vm/
  49. vm_service/
  50. vm_service_interface/
  51. vm_service_protos/
  52. vm_snapshot_analysis/
  53. wasm_builder/
  54. .gitignore
  55. analysis_options.yaml
  56. BUILD.gn
  57. OWNERS
  58. pkg.dart
  59. pkg.status
  60. README.md
pkg/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