-
Notifications
You must be signed in to change notification settings - Fork 495
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
fatal error: concurrent map read and map write #3154
Comments
Working on a fix now. Edit: different issue, oops. |
This is because of a hack I did avoid a deep copy of the template data when setting template-specific values (currently only |
I have tired the latest version, but still 1 in 3 tries it fails for me. chezmoi: /Users/ds/.local/share/chezmoi/home/.chezmoiexternals/oh-my-zsh.yaml.tmpl: template: /Users/ds/.local/share/chezmoi/home/.chezmoiexternals/oh-my-zsh.yaml.tmpl:3:19: executing "/Users/ds/.local/share/chezmoi/home/.chezmoiexternals/oh-my-zsh.yaml.tmpl" at <.chezmoi.os>: map has no entry for key "chezmoi" |
I'm unable to duplicate this error with your dotfiles in a fresh Ubuntu Docker image. I cloned at commit a3c673bf9666a10c12de72ac6e06dec3eb1df315, lightly edited Do you have a small cases that reproduces the problem? |
Note also that this is a different error to the original one reported in this issue. |
Wait, I can reproduce it myself now. |
For me the errors are interchangeable. Sometime I get single line error (as posted recently), sometime I get full trace of error log as mentioned in the main thread.
yeah, it takes some tries to produce the error. I will give #3160 a try, if that fix it. UPDATE: |
Describe the bug
If I have staged changes or unpunished changes in chezmoi repo (dotfiles),chezmoi apply -R
almost always fail with errors messageWith
.chezmoiscript
broken down to directory structure,chezmoi
fail to read the data map.map has no entry for key "chezmoi"
To reproduce
git add .
chezmoi -R
-- Result in errorchezmoi -R
-- Result in errorExpected behavior
It should not result in the error.
Output of command with the
--verbose
flagOutput of
chezmoi doctor
The text was updated successfully, but these errors were encountered: