Skip to content

Package 'unittest' is depended on from both sources 'sdk' and 'hosted #332

@DartBot

Description

@DartBot

Originally opened as dart-lang/sdk#7127

This issue was originally filed by scottishph...@gmail.com


What steps will reproduce the problem?

  1. Create a pubspec.yaml for a library like:
      name: nigori
      description: Secrets in the cloud
      
      dependencies:
        unittest: { hosted: unittest }
  2. 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/
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    closed-duplicateClosed in favor of an existing reporttype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions