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

Add package config to build step #3495

Merged
merged 4 commits into from
May 8, 2023

Conversation

simolus3
Copy link
Contributor

@simolus3 simolus3 commented May 5, 2023

This adds a packageConfig getter to BuildStep, which can be used to read the language version of packages involved in the build. The package config exposed in the build step hides the actual files of packages on the file system. Instead,

By default, the package config will be resolved from the current isolate in runBuilder. However, build_runner_core also constructs a config based on the PackageGraph which avoids loading the raw package config multiple times.

Closes #3492.

@jakemac53 jakemac53 merged commit 09a4fef into dart-lang:master May 8, 2023
66 checks passed
@simolus3 simolus3 deleted the resolve-language-version branch May 8, 2023 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API to resolve language version of a package
2 participants