commit | 5a0bc197fde3db2907d0e35e0470e601bee20845 | [log] [tgz] |
---|---|---|
author | Jacob MacDonald <jakemac@google.com> | Wed Jan 10 22:51:25 2024 |
committer | GitHub <noreply@github.com> | Wed Jan 10 22:51:25 2024 |
tree | 299ffaf5adc7552b023209154b6eb60f978fb469 | |
parent | 3e7d93c483817460cb5253e6aaa211d998196059 [diff] |
add test validating current behavior of packageOf, run CI on windows (#137) - validates the behavior of https://github.com/dart-lang/package_config/issues/136 today (but does not change it) - removes build_runner deps for testing, there is no need to use it for such a small package - fixes a bug in discovery_test.dart that was probably landed due to inability to run tests
Support for working with Package Configuration files as described in the Package Configuration v2 design document.
A Dart package configuration file is used to resolve Dart package names (e.g. foobar
) to Dart files containing the source code for that package (e.g. file:///Users/myuser/.pub-cache/hosted/pub.dartlang.org/foobar-1.1.0
). The standard package configuration file is .dart_tool/package_config.json
, and is written by the Dart tool when the command dart pub get
is run.
The primary libraries of this package are
package_config.dart
: Defines the PackageConfig
class and other types needed to use package configurations, and provides functions to find, read and write package configuration files.
package_config_types.dart
: Just the PackageConfig
class and other types needed to use package configurations. This library does not depend on dart:io
.
The package includes deprecated backwards compatible functionality to work with the .packages
file. This functionality will not be maintained, and will be removed in a future version of this package.