towards Nupm workspaces
Open
@amtoine is already working on this.
Since Dec 11, 2023.
design
- Dominant language
- Nushell
- Stars
- 335
- Forks
- 24
- PR merge metrics
- No merged PRs in 30d
Description
i was once again working on NGM and was thinking about a few things related to Nupm 😏
- installing multiple modules in a single package:
in https://github.com/nushell/nupm/pull/33, we made it possible to install multiple distinct modules from a single package, e.g.nu-git-managerandnu-git-manager-sugarin NGM. However, after using this feature, it sounds a bit strange... it's a bit like having two separatesrc/directories in a single Rust crate 🤔
i think we should revert that feature and keep it simpler, i.e. a single module per module package, and move towards a "workspace" or "bundle" model - dependencies resolution:
in NGM, i always have to write things likeuse ../../foo/bar.nuin the modules themselves oruse ../src/nu-git-manager/in the tests, which is not that great 🤔
i think it would be great to have anupm runthat would resolve the dependencies and do that for the user, e.g.use module/foo/bar.nuanduse nu-git-managerrespectively: this would only be a trick withNU_LIB_DIRSto expose modules and activate overlays - "workspace" or "bundle" support:
would be cool to have multiple module packages in a repo and a central top-levelpackage.nuonthat would define a "workspace" and allow maybe to install everything at once?, e.g.nupm install --workspace - rename
package.nuontonupm.nuon
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.