-
Notifications
You must be signed in to change notification settings - Fork 50
Deprecate --packages flag #484
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
I think we can go ahead and not only deprecate, but fully discontinue/remove this flag. That is what we're doing elsewhere (and what breaking change dart-lang/sdk#48272 announced). |
Ok, I'll delete the --packages flag. But I think I'll still keep support for passing the .packages or package_config.json file into the resolver API, until we do the next major version, since removing support for that is a breaking change. |
@liamappelbe we're doing a breaking change. It's already been announced and approved. So you can go ahead and remove. |
Are you saying this breaking change also covers breaking API changes in package:coverage? |
Dropping support for passing in |
@mit-mit I think there's 2 questions here:
I have a PR out that deletes --packages, but just deprecates Resolver.packagesPath, but I'm getting push back on deleting --packages. I don't think the breaking change covers changes to package:coverage, so we should probably just deprecate both of those things, and not delete anything yet. |
The breaking change is meant to cover all things |
SGTM.
I think both of these are included in the code path for Maybe all we need to do is delete the small chunk of fallback parsing. |
Ok, so I'll delete the .packages fallback parsing in the resolver, and deprecate (but keep for now) the |
This flag takes either the .packages or package_config.json file directly. This is a bit inconvenient, especially since .packages is being discontinued, and package_config.json is inside the .dart_tool directory, which users shouldn't have to know the details of.
Instead we should have a --package flag that accepts the path to the root of the package, and uses package_config.findPackageConfig to locate the package config.
The text was updated successfully, but these errors were encountered: