Skip to content

How to handle external .env files with chezmoi #3062

Closed Answered by halostatue
mattiasbonte asked this question in Q&A
Discussion options

You must be logged in to vote

Note: I do not currently use any sort of external, but similar questions have been asked.

Essentially, Chezmoi expects an entry to either be managed as an external entry or a fully managed entry, not both. So DEV/GO/somerepo is managed as an external, but you have an entry file inside of it.

The way to work around this—assuming that .env is in the repo .gitignore—would be to have an after_ script that creates DEV/GO/somerepo/.env.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mattiasbonte
Comment options

@cathaysia
Comment options

Answer selected by mattiasbonte
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants