Proposal: package_incompatibilities.yaml
in the Dart SDK
#3962
Labels
type-enhancement
A request for a change that isn't a bug
The general idea is that in the root of the Dart SDK we should introduce a
package_incompatibilities.yaml
file.It should sit next to the existing
version
andrevision
files, and it should be explained in the README.md file.The
package_incompatibilities.yaml
file should have the following form:In essences the file would allow SDK developers to declare specific package versions to be incompatible with future versions of the Dart SDK.
Behavior:
package_incompatibilities.yaml
is inpubspec.lock
then using it is fine.dart pub get
should never allow a package version matched inpackage_incompatibilities.yaml
.package_incompatibilities.yaml
can be surfaced.Use cases:
^3.1.0-dev
instead of>=3.1.0-dev <3.1.0
(and we regret it because the experimental feature was changed).Whether we'd frequently want to use this functionality I don't know, I recall a few cases where it would have been a nice tool. I don't envision us wanting to use this frequently or at scale.
Mostly, I'm writing this proposal, so that we can consider implementing it should become relevant in the future.
The text was updated successfully, but these errors were encountered: