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

Feature Request: Install Binaries Globally #260

Open
MatthewDolan opened this issue Apr 18, 2022 · 1 comment
Open

Feature Request: Install Binaries Globally #260

MatthewDolan opened this issue Apr 18, 2022 · 1 comment

Comments

@MatthewDolan
Copy link

I have been using hermit to install packages into local repos to great effect!

There are a few places where it would be really nice to be able to install those same binaries globally (e.g. into ~/bin so that if an individual repo does not have a binary pinned, it would fall back to this global binary).

The exact use case I am looking at is that I want to add a conventional commit message linter to a git hook in my dotfiles (which are shared between Mac and Linux instances) and it would be nice to programmatically define which linter version should be downloaded and used. Hermit already knows how to download and install the linter for both architectures, so it would be really nice to leverage that.

@alecthomas
Copy link
Collaborator

This can (somewhat) be done manually, by hermit init ~/.global-hermit; export PATH=$HOME/.global-hermit:$PATH.

For this specific example though, why not add it to the repo at the exact version?

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

No branches or pull requests

2 participants