Skip to content

Pub/Publish: Warn when you are using an import transitively #1480

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
matanlurey opened this issue Dec 1, 2016 · 1 comment
Closed

Pub/Publish: Warn when you are using an import transitively #1480

matanlurey opened this issue Dec 1, 2016 · 1 comment
Labels
closed-duplicate Closed in favor of an existing report

Comments

@matanlurey
Copy link
Contributor

I'd be OK with this an optional flag, but I really think it should be the default.

i.e., if I have in my pubspec:

dependencies:
    angular2:

I will get a .packages resolution that includes many things, like source_span.

If I try to use source_span without relying on it, I'd like to see this become a warning/error:

// Hehe! I can use this because Angular does!
import 'package:source_span/source_span.dart';
@nex3
Copy link
Member

nex3 commented Dec 1, 2016

Duplicate of #343.

@nex3 nex3 closed this as completed Dec 1, 2016
@nex3 nex3 added the closed-duplicate Closed in favor of an existing report label Dec 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-duplicate Closed in favor of an existing report
Projects
None yet
Development

No branches or pull requests

2 participants