Pub: installed name should be based on pubspec name, not URL #47
Labels
closed-not-planned
Closed as we don't intend to take action on the reported issue
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Originally opened as dart-lang/sdk#3494
This issue was originally filed by [email protected]
My pubspec looks like:
name: 'googlefoo-samples'
dependencies:
googlefoo:
git: https://code.google.com/p/google-foo-dart-client
The intent being to import as #import('package:googlefoo/...');
However this gets installed as packages/google-foo-dart-client, and can only be imported as 'package:google-foo-dart-client/...'.
Since the names are specified in the pubspec, is there any reason not to use them?
(I can't change the project name, it's a cross-language convention).
The text was updated successfully, but these errors were encountered: