-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Stop producing .packages #47431
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
Comments
cc @kevmoo @jonasfj @lrhn @leafpetersen @munificent any concerns with this? I guess it is a breaking change and should be announced? |
Even further, I think we should consider having pub delete any existing |
There is a number of (third-party?) tools which read |
Ya, the original plan was to wait a (long) while before deleting this file, possibly even until Dart 3.0. The value of removing it likely doesn't justify the breaking change at this time given all the other churn that is happening due to NNBD and language versioning. We could add a pointer to the new file in the comment at the top of the file? |
Seems reasonable to me... Or at-least we should wait until users have migrated from |
Part of the problem is the old format was so easy to parse there was little reason to even depend on package_config in the first place, so tools often did not and parsed it on their own. So unfortunately even if the world migrates to package_config 2.x which has no |
We will move away from creating (It would be interesting to add a flag that makes Pub generate the |
|
cc @devoncarew who I think was familiar with some of the external tooling that uses .packages (something around Intellij perhaps?). |
Fuchsia I believe also reads the .packages file. It would be good to track the tools that need to migrate, and slowly change them over, but we'll want that changeover to be a fair ways out. |
And, CIs won't provide many signals for which tools will break. |
I moved this to the SDK tracker as it's such a cross-cutting issue. |
In my personal workflow on small code snippets (often copy/paste from bug reports) I use
What would this look like if |
Can't you just pass a
Yes, we'd have to replace our current |
@rakudrama - this issue refers to the We already have a replacement file it the SDK repo, you can change |
An issue we discovered today that is worth tracking before we stop generating .packages files: |
PR for this: dart-lang/pub#3413 I'll move the VM issue discussed in #47431 (comment) to #48272 |
We added logic to produce the new packages file:
.dart_tool/package_config.json
, however we now generate both that and.packages
. I think we should stop generating.packages
, so that there is a single master, and less room for confusion.Known dependants of the
.packages
file that will need to get fixed first:.packages
to.dart_tools/package_config.json
site-www#3422The text was updated successfully, but these errors were encountered: