-
Notifications
You must be signed in to change notification settings - Fork 486
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
Unable to add ~/.config/chezmoi/chezmoi.toml
to chezmoi
#3638
Comments
You need to use You can use your existing config by simply moving/renaming it. Running |
shouldn't then I be able to run |
That command would create We prevent this because allowing this means that any changes you make to your config would always be one You can move Every time you change your config template you must also run |
I wish the docs would describe this specific use case, it was not immediate to me how this works. For posterity, I solved the issue running the following:
|
They do:
If you have some suggestions for improving the documentation to make this easier to find, we will happily accept either pull requests or new issues with those suggestions. But it is in the documentation. We do request that people search all issues before opening a new one, as a closely related question was asked two days ago (#3634), which has pointers to #3405, #2854, and #3285—the latter two of which have the text from the error in their title and/or body. |
Ah sorry, I only used google assuming it would have indexed issues with that string. Or, why not allowing that file to be just added to the dotfiles, since one can already workaround it by adding the .chezmoi.toml.tmpl? |
The issues linked above have the reasons why this cannot be resolved, but #3405 (comment) (and probably other linked issues) explains why it has to be handled differently. |
got it. One last suggestion then: maybe it would be worth to have the error message from |
Good idea. Implemented in #3644. I've used text instead of a URL (as the URL might change over time), but the text should be a sufficient clue for future users. |
That entire @twpayne do we not also protect against |
Not at the moment. At the moment, chezmoi protects against adding files in its config ( |
What exactly are you trying to do?
I made a config file so that every edit I make is autocommited and pushed. I would like to have this configuration apply to all the machines I use.
What have you tried so far?
I tried to add the config file to chezmoi, but it complains saying it's protected:
Where else have you checked for solutions?
Output of any commands you've tried with
--verbose
flagOutput of
chezmoi doctor
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: