Skip to content

logging library dependency issue with unittest #385

@DartBot

Description

@DartBot

Originally opened as dart-lang/sdk#7436

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


What steps will reproduce the problem?

  1. create a project and specify the following dependency:
    dependencies:
      options_file: any
      logging: 0.2.8+2
  2. Run Pub Install
    3.

What is the expected output? What do you see instead?
All dependencies should be installed correctly. Get the following error instead:
Pub install failed, [1] Resolving dependencies...
Incompatible dependencies on 'unittest':

  • 'logging' depends on it from source 'hosted'
  • 'options_file' depends on it from source 'sdk'

What version of the product are you using? On what operating system?

Please provide any additional information below.

the pubspec.yaml file of options_file library has the unittest source correctly set to "any" (https://github.com/jamesots/optionsfile/blob/master/pubspec.yaml)
dependencies:
  unittest: any

looks like the logging library has the unittest source explicitly defined. Please fix this to "any" in the logging library so that the above dependency issue is resolved

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