Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standard installation method #983

Closed
tombh opened this issue Nov 23, 2024 · 4 comments
Closed

Standard installation method #983

tombh opened this issue Nov 23, 2024 · 4 comments

Comments

@tombh
Copy link

tombh commented Nov 23, 2024

I know it's easy to install the scrips in this repo by cloning and then using use or source to activate the desired script. That's all fine.

But I'm starting to collect a few Nushell-related repos like this and would like some sort of package manager to maintain them. https://github.com/nushell/nupm seems promising, but it doesn't seem to support arbitrary Git repos. I know from my BASH/ZSH days that a lot of the plugin managers will happily support the https://github.com/ohmyzsh/ohmyzsh project, which seems similar to this nu_scripts repo, in that it's a collection of useful scripts that doesn't necessarily conform to any packaging standard.

Basically I'd like:

  • A way to not have to remember how to install this (and other repos), so that I don't have to look up the installation instructions next time I setup my Nushell config on a new machine. A plugin manager should be able to install itself and have a simple command to install/sync packages.
  • Automated updates. I'd like a simple way to know when this repo has updated and have a single command to update all my scripts/plugins.

If this doesn't exist yet, that's fine. I'm just interested to know where Nushell is at. I'd actually be interested in building it if it was in keeping with Nushell philosophy.

@fdncred
Copy link
Contributor

fdncred commented Nov 23, 2024

You're more than welcome to work with @amtoine @kubouch and others on nupm to extend it to work this way, assuming they approve. You're also welcome to roll-your-own and we can store it here in nu_scripts somewhere. I'd just personally rather get all the package-manager code working in the same direction so that the entire community could benefit from it. So, I'd push for nupm to allow something like you're talking about.

@tombh
Copy link
Author

tombh commented Nov 23, 2024

Thanks, I'll close this in favour of nushell/nupm#110

@tombh tombh closed this as completed Nov 23, 2024
@NotTheDr01ds
Copy link
Contributor

but it doesn't seem to support arbitrary Git repos

I'd just personally rather get all the package-manager code working in the same direction so that the entire community could benefit from it. So, I'd push for nupm to allow something like you're talking about.

While I fundamentally agree, I've been struggling with that for a while now. It almost seems to me that nupm is fundamentally designed in a different direction, and I haven't figured out yet myself if the "registry" based approach of nupm can be reconciled with a git-centric approach.

At this point my personal view is that it might make more sense to start a separate project with Git-centric approach and then see if there's some way to merge them in the future.

@fdncred
Copy link
Contributor

fdncred commented Nov 23, 2024

Let's continue this conversation over at nushell/nupm#110

@nushell nushell locked as off-topic and limited conversation to collaborators Nov 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants