-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[cfe] dart compile kernel --depfile
does not include package_config.json
#59637
Comments
I think it's an oversight. |
I think the thing was introduced in 9f4f0ac --- and has seemingly always been by taking component.uriToSource.keys which is only the dart files. As this is not really a CFE feature but a VM one I can't speak to whether this is by design or not. If you want something more you should give the file system a tracker:
which records everything read through the file system object, e.g.
|
Thanks @jensjoha!
If we'd go that way, you'd also have to report the Dart executable itself. Or basically anything that influences when Dart changes instead of the program sources. (Which we do need to do in the context of the work in dart-lang/native#1770, but we don't want to go and content-hash the So I think we can safely say that this feature is meant to track the sources of the program, not the version of Dart. I don't see any obvious uses in the Flutter Tools or Dart SDK that would break by adding the package_config.json to the DEPS, so let me make a PR to do that. If the So the obvious implementation in I don't know if there are any uses where We could CFE report the package config used in the
Maybe we should try making |
@jensjoha What are your thoughts about the |
Steps to reproduce
Expected result:
xyz.dill.d
containspath/to/package_config.json
Actual result:
xyz.dill.d
contains only the list of.dart
files.@johnniwinther @jensjoha @chloestefantsova Is the omission of the package_config intentional or an oversight? The kernel compilation would most likely need to be rerun when the contents of the file passed in
--packages
changes.The text was updated successfully, but these errors were encountered: