-
Notifications
You must be signed in to change notification settings - Fork 21
Remove package root #38
Conversation
One question: do we think this should be a new version |
cc @gspencergoog @lrhn for review |
This change looks good to me. Whether it counts as a breaking change probably depends on what the deprecation policy says. I know that Flutter doesn't make a new version for removing previously deprecated items, which our deprecation policy says are only removed after being deprecated for a year. I'm not sure what the corresponding policies are for Dart. |
@kevmoo @natebosch thoughts on the version? |
Ugh. Strictly speaking this should be a new major version (breaking change) since we're removing an API. BUT this API hasn't worked forever...so I could see allowing an exception. |
The |
It returns |
How does this block a change in the SDK? |
Apparently a number of things in the SDK use it:
Details in https://dart-review.googlesource.com/c/sdk/+/221340 |
Yup: https://dart-review.googlesource.com/c/sdk/+/221340/8/sdk/lib/io/platform.dart |
What I mean is, we could remove the call to |
Hmm, it actually looks like @gspencergoog already did that recently (but that this version hasn't been published): Still, I don't know what the value is of retaining an API that is clearly broken and has no functional purpose. It just seems very, very confusing. I'm still very much in favor of getting it removed. |
I'm pretty confident this doesn't break anything. We have not supported package directories for years: dart-lang/pub#1960 I suggest we a) move forward with removing this API, and b) that we keep the version increment minor. Any objections @natebosch ? |
yeah I think it's fine to consider removing it, just wanted to make sure we weren't rushing it for a constraint that didn't exist.
Not enough to block it, but I'm also not super eager to be the one on the hook to push it out and watch for breakages 😉 |
Merging on behalf of @mit-mit
Removes the
Platform.packageRoot
, which was already marked deprecated (dart-lang/sdk#41197), and which doesn't work in Dart 2.This is currently a blocker for dart-lang/sdk#47769