Closed dabrown645 closed 1 month ago
You need to provide sufficient information for someone else to reproduce the problem.
I figured out what is going on chezmoi installs itself in $HOME/bin but I keep my pgms in .local/bin which is in my path so I moved chezmoi there and tried to add .local/bin with chezmoi and it hangs.
I happened to get interrupted after executing "chezmoi add .local/bin" and when I get back there were the following chezmoi msgs:
❯ bin/chezmoi add .local/bin chezmoi: /home/dabrown/.local/bin/chezmoi:84001: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. chezmoi: /home/dabrown/.local/bin/chezmoi:159915: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
Ah, thank you! This is really helpful.
The tl;dr is that chezmoi's secret scanning is detecting secrets in chezmoi's own binary, which leads to the warning/hang.
The fix is likely for chezmoi add
to skip anything with chezmoi
in the path, but I need to think about this.
Thank you!
Describe the bug
chezmoi add .local/bin hangs and doesn't add directory contents.
To reproduce
I have my commands in .local/bin and when I tried to add them the command just hangs and I have to to get out.
chezmoi add .local/bin
Expected behavior
Expected that the contents of .local/bin added to .local/share/chezmoi
Output of command with the
--verbose
flagOutput of
chezmoi doctor
Additional context
Add any other context about the problem here.