e20704c3b0
Move PackageConfigFileBuilder into the analyzer_testing public API and deprecate the copy exposed from package:analyzer. The builder is only used by test infrastructure, so keeping it in analyzer_testing makes the ownership clearer and avoids exposing test-only utilities from analyzer. Update the builder API to accept a rootFolder instead of a rootPath. This lets callers pass the resource-provider folder directly, so the generated rootUri is derived from the same file-system abstraction that created the test files. This avoids accidentally passing POSIX paths where resource provider paths are required, such as on Windows. Update existing test utilities and callers to import the new library and pass Folder objects. Remove the production analysis server dependency on the builder by emitting the temporary plugin package config JSON directly. Change-Id: I46b14710626e0d6d5884afcdc5a05b23077acfc9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/499081 Reviewed-by: Paul Berry <paulberry@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com> Reviewed-by: Samuel Rawlins <srawlins@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
28 lines
835 B
YAML
28 lines
835 B
YAML
name: analyzer_testing
|
|
description: Testing utilities related to the analyzer and analysis_server_plugin packages.
|
|
version: 0.3.0-dev
|
|
repository: https://github.com/dart-lang/sdk/tree/main/pkg/analyzer_testing
|
|
|
|
environment:
|
|
sdk: ^3.9.0
|
|
|
|
resolution: workspace
|
|
|
|
dependencies:
|
|
# See the release policy for managing this dependency at
|
|
# pkg/analyzer/doc/implementation/releasing.md.
|
|
analyzer: 13.1.0-dev
|
|
meta: ^1.10.0
|
|
path: ^1.9.0
|
|
test: ^1.25.0
|
|
|
|
# We use 'any' version constraints here as we get our package versions from
|
|
# the dart-lang/sdk repo's DEPS file. Note that this is a special case; the
|
|
# best practice for packages is to specify their compatible version ranges.
|
|
# See also https://dart.dev/tools/pub/dependencies.
|
|
dev_dependencies:
|
|
analyzer_utilities: any
|
|
args: any
|
|
lints: any
|
|
test_reflective_loader: any
|