Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Use latest version when multiple versions match range #3

Closed
kevinsawicki opened this issue Mar 2, 2015 · 3 comments · Fixed by #4
Closed

Use latest version when multiple versions match range #3

kevinsawicki opened this issue Mar 2, 2015 · 3 comments · Fixed by #4
Assignees
Labels

Comments

@kevinsawicki
Copy link
Contributor

If you have:

"consumedServices": {
  "foo": {
    "versions": {
      "^1 || ^2": "bar"
    }
  }
}

And a version 1.0 and 2.0 are provided, then bar will be called twice.

I was expecting bar to get called once with the 2.0 version since it is the latest version compatible with the range specified.

@maxbrunsfeld
Copy link
Contributor

Note that when multiple versions of a service are provided by separate packages, consumers of that service should be called with the latest version from each package. In other words, old versions of services should only be skipped if a newer version is provided in the same package.

@nathansobo
Copy link
Contributor

@maxbrunsfeld You want to take this on?

@maxbrunsfeld
Copy link
Contributor

Sure, I'll do this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants