You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When working on multiple packages at the same time, it's very useful to have a package manager that can set up symlinks between packages.
For implementing path dependencies, we'll want to choose between symlinks and Rojo project composition.
Symlinks
We can create symlinks to point to any referenced path dependencies.
Pros:
Should appear the same as a regular installation to most tools.
Cons:
Windows users need to enable symlinks, like via Developer Mode or as an optional feature in some installers like Python's.
Rojo has known bugs when interacting with symlinks that are hard to solve.
Rojo Project Composition
We can take advantage of Rojo's ability to compose project files together by generating small Rojo project files that point to the actual contents of the package.
Pros:
Works on any system without extra configuration.
Cons:
Rojo specific! Other tools may not understand this pattern.
The text was updated successfully, but these errors were encountered:
Personally, I think the way Cargo does it is better. Using the explicit inner struct makes it clear that it's a path dependency, which separates it from the "special string" format that npm uses.
I'm unsure what benefits are derived from specifying the version field of a path dependency, perhaps that should also be up for discussion.
The version field provides a fallback if the path doesn't exist, and allows one to upload to the registry (using the version specified from the registry instead of the path).
When working on multiple packages at the same time, it's very useful to have a package manager that can set up symlinks between packages.
For implementing path dependencies, we'll want to choose between symlinks and Rojo project composition.
Symlinks
We can create symlinks to point to any referenced path dependencies.
Pros:
Cons:
Rojo Project Composition
We can take advantage of Rojo's ability to compose project files together by generating small Rojo project files that point to the actual contents of the package.
Pros:
Cons:
The text was updated successfully, but these errors were encountered: