-
Notifications
You must be signed in to change notification settings - Fork 232
Description
Originally opened as dart-lang/sdk#7127
This issue was originally filed by scottishph...@gmail.com
What steps will reproduce the problem?
- Create a pubspec.yaml for a library like:
name: nigori
description: Secrets in the cloud
dependencies:
unittest: { hosted: unittest } - Depend on it in a application pubspec.yaml like:
name: PassgoriExtension
description: Password storage using Nigori
dependencies:
js: { hosted: js }
nigori:
git: file:///home/drt24/dart/nigori/ - On saving the second pubspec.yaml the following error is produced by pub install:
Running pub install ...
Pub install fail, Resolving dependencies...
Package 'unittest' is depended on from both sources 'sdk' and 'hosted'.
What is the expected output? What do you see instead?
I expect dependencies to be correctly resolved. Instead they fail. Changing unittest: { hosted: unittest }
to unittest: { sdk: unittest }
results in the same error message. Changing js: { hosted: js }
to js: { sdk: js }
results in:
Running pub install ...
Pub install fail, Resolving dependencies...
Entry null is not a supported type.
What version of the product are you using? On what operating system?
Dart Editor version 0.2.6_r15355
Dart SDK version 0.2.6.0_r15355
$ uname -a
Linux 3.2.0-34-generic #53-Ubuntu SMP Thu Nov 15 10:48:16 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
Distributor ID: Ubuntu
Description: Ubuntu 12.04.1 LTS
Please provide any additional information below.
I expect it to just work but failing that something in the error message indicating where the conflicting constraints on sources are coming from would greatly aid debugging.