Skip to content

dependency version ranges don't work for github dependencies #1250

Open
@DartBot

Description

@DartBot

Originally opened as dart-lang/sdk#22481

This issue was originally filed by [email protected]


What steps will reproduce the problem?

pubspec.yaml that lists a git dependency with a version range like this fails:

name: wService
version: 1.0.3
dependencies:
  wTransport:
    git: [email protected]:Workiva/wTransport.git
    version: "^1.0.0"

with this error:

Working dir: /Volumes/CASE/code/wService/examples/dart
/usr/local/Cellar/dart/1.8.5/libexec/bin/pub get
Resolving dependencies...
Package wTransport has no versions that match >=1.0.0 <2.0.0 derived from:

  • wService 1.0.3 depends on version ^1.0.0
    Process finished with exit code 1

But if version is specified as ">=1.0.0", it works as expected and installs the 2.0.0 tagged release.

For some reason, Dart doesn't recognize that any of the 1.0.x tagged versions are available for install.
Any idea why that would be? Is something beyond a git tag with release notes required for Dart to recognize the version?

What is the expected output? What do you see instead?

expect install of wTransport library at version 1.0.3

What version of the product are you using?

1.8.5

On what operating system?

OSX

What browser (if applicable)?

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestcontributions-welcomeContributions welcome to help resolve this (the resolution is expected to be clear from the issue)type-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions