Skip to content
This repository was archived by the owner on May 3, 2022. It is now read-only.
This repository was archived by the owner on May 3, 2022. It is now read-only.

Allow multiple versions of tchannel to be require()d. #259

Description

@lxe

Tchannel should't make any assumption about the module tree in which it is in. Let's assume we have the following node_modules tree:

$ npm ls tchannel
top-level-project@1.0.0 /Users/aleksey/devel/top-level-project
├─┬ dep1@1.0.0
│ └── tchannel@3.5.0
├─┬ dep2@1.0.0
│ └── tchannel@3.6.0

Both dep1 and dep2 have tchannel as dependency matching all minor version up to 4:

"dependencies": {
  "tchannel": "^3.5.0"
}

Running npm install on this tree will (rightfully) mark both 3.5.0 and 3.6.0 versions as valid and matching their respective semver ranges.

I think it's a very bad practice for a module to expect a shape of the project's entire modules tree in which it is.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions