Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dart 2.18: Replace package_spec_action with package_config_action #85

Open
cbracken opened this issue Sep 23, 2022 · 0 comments
Open

Dart 2.18: Replace package_spec_action with package_config_action #85

cbracken opened this issue Sep 23, 2022 · 0 comments

Comments

@cbracken
Copy link
Owner

cbracken commented Sep 23, 2022

Prior to Dart 2.18, package metadata collected by pub was emitted in a package spec (.packages file). This contained a mapping of package name to resolved URL (typically a file URL) for the transitive closure of dependencies of each package. The existing rules emit this file and pass it to the VM and compilers via the --packages option.

Support for package specs was deprecated in 2.8.0 and dropped in Dart 2.18. The replacement is a JSON-based package config file written to .dart_tool/package_config.json. We'll need to add an equivalent to package_spec_action that generates this new file, and update existing rules to make use of it.

This is blocking the roll to Dart 2.18.

@cbracken cbracken changed the title Replace package_spec_action with package_config_action Dart 2.18: Replace package_spec_action with package_config_action Sep 23, 2022
@cbracken cbracken pinned this issue Sep 23, 2022
@cbracken cbracken unpinned this issue Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant