-
Notifications
You must be signed in to change notification settings - Fork 56
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
feat: Support reading default init sources from ~/.hermit.hcl #434
Conversation
I'm testing it with:
I see the sources added correctly to I couldn't see any existing tests for the area, any suggestions there? |
Perhaps it makes sense to add tests in |
I can't seem to get rid of this log line:
|
146f5fb
to
b27f060
Compare
@nickajacks1 tests added! |
@lox I got some failed tests when running the
|
b27f060
to
d98bac4
Compare
Maybe you want github-token-auth to be read from there as well? |
Yup, absolutely, was going to do that in another PR unless you want it here @alecthomas |
Allow users to specify default sources for new environments in ~/.hermit.hcl using the init-sources configuration option. These sources will be used when initializing a new environment unless overridden by command-line arguments.
d98bac4
to
88b6f97
Compare
Adds support for user-level configuration defaults in Hermit. Users can now define default settings in their ~/.hermit.hcl file that will be applied to all new Hermit environments. **Example ~/.hermit.hcl:** ```hcl defaults { sources = [ "https://github.com/lox/private-hermit-packages.git", "https://github.com/cashapp/hermit-packages.git" ] } ``` Also allows the user config file to be defined with `HERMIT_USER_CONFIG` or `--user-config`. This replaces the more narrowly scoped #434. --------- Co-authored-by: Alec Thomas <[email protected]>
This PR introduces a new
init_sources
field to the Hermit user configuration file (~/.hermit.hcl
). This field allows users to specify a default set of sources to be used when initializing a new Hermit environment with thehermit init
command.Example
~/.hermit.hcl
:This means any call to
hermit init
will use these sources.