Skip to content

Support comparing libraries/packages for type compatibility #38

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

Closed
DartBot opened this issue Jun 5, 2015 · 2 comments
Closed

Support comparing libraries/packages for type compatibility #38

DartBot opened this issue Jun 5, 2015 · 2 comments
Assignees
Labels
closed-not-planned Closed as we don't intend to take action on the reported issue P3 A lower priority bug or feature request type-enhancement A request for a change that isn't a bug

Comments

@DartBot
Copy link

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/46275?v=3" align="left" width="96" height="96"hspace="10"> Issue by munificent
Originally opened as dart-lang/sdk#2828


One planned feature of pub is the ability to have it select an appropriate configuration-specific package based on the environment the app is running in. For example, there may be a single "unittest" package that has implementations for running on the standalone VM (just printing to stdout) and the browser (generating HTML).

For this to make sense, every implementation must expose the same (or a compatible) API. Since libraries aren't first class, the current plan is to basically duck type it: it's up to the package designer to ensure all of the implementations match.

It would be very handy if pub had a feature that would let you compare two libraries/packages and would determine if their public APIs are compatible with each other. This could also be useful for upgrading a package so you can see which API changes are breaking.

@DartBot DartBot added type-enhancement A request for a change that isn't a bug closed-not-planned Closed as we don't intend to take action on the reported issue Priority-Low labels Jun 5, 2015
@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/46275?v=3" align="left" width="48" height="48"hspace="10"> Comment by munificent


Added this to the Later milestone.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/46275?v=3" align="left" width="48" height="48"hspace="10"> Comment by munificent


Something along these lines would be useful, but is outside of the scope of pub.


Added NotPlanned label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-not-planned Closed as we don't intend to take action on the reported issue P3 A lower priority bug or feature request type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

3 participants