Skip to content
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

Cannot run run_onchange_.. script with chezmoi apply --source-path command. #3737

Open
2 of 3 tasks
xvzc opened this issue Apr 30, 2024 · 0 comments
Open
2 of 3 tasks
Labels
support Support request

Comments

@xvzc
Copy link

xvzc commented Apr 30, 2024

What exactly are you trying to do?

Describe in as much detail as possible.

What have you tried so far?

Describe what you have tried so far.

Where else have you checked for solutions?

Output of any commands you've tried with --verbose flag

chezmoi --verbose apply --source-path dot_zshrc

NO_OUTPUT

Output of chezmoi doctor

$ chezmoi doctor

RESULT    CHECK                       MESSAGE
ok        version                     v2.47.3, commit 4f76edb5295068569d7c6311020ac0094c77ef44, built at 2024-03-31T18:12:53Z, built by Homebrew
warning   latest-version              v2.48.0
ok        os-arch                     darwin/arm64
ok        uname                       Darwin macbook-air-m2 23.0.0 Darwin Kernel Version 23.0.0: Fri Sep 15 14:42:57 PDT 2023; root:xnu-10002.1.13~1/RELEASE_ARM64_T8112 arm64
ok        go-version                  go1.22.1 (gc)
ok        executable                  /opt/homebrew/bin/chezmoi
ok        upgrade-method              brew-upgrade
ok        config-file                 ~/.config/chezmoi/chezmoi.toml, last modified 2024-01-06T20:36:12+09:00
warning   source-dir                  ~/.local/share/chezmoi is a git working tree (dirty)
ok        suspicious-entries          no suspicious entries
warning   working-tree                ~/.local/share/chezmoi is a git working tree (dirty)
ok        dest-dir                    ~ is a directory
ok        umask                       022
ok        cd-command                  found /bin/zsh
ok        cd-args                     /bin/zsh
info      diff-command                not set
ok        edit-command                found ~/.local/share/bob/nvim-bin/nvim
ok        edit-args                   nvim
ok        git-command                 found /opt/homebrew/bin/git, version 2.43.0
ok        merge-command               found /usr/bin/vimdiff
ok        shell-command               found /bin/zsh
ok        shell-args                  /bin/zsh
info      age-command                 age not found in $PATH
info      gpg-command                 gpg not found in $PATH
info      pinentry-command            not set
ok        1password-command           found /opt/homebrew/bin/op, version 2.24.0
info      bitwarden-command           bw not found in $PATH
info      bitwarden-secrets-command   bws not found in $PATH
info      dashlane-command            dcli not found in $PATH
info      doppler-command             doppler not found in $PATH
info      gopass-command              gopass not found in $PATH
info      keepassxc-command           keepassxc-cli not found in $PATH
info      keepassxc-db                not set
info      keeper-command              keeper not found in $PATH
info      lastpass-command            lpass not found in $PATH
info      pass-command                pass not found in $PATH
info      passhole-command            ph not found in $PATH
info      rbw-command                 rbw not found in $PATH
ok        vault-command               found /opt/homebrew/bin/vault, version 1.15.6
info      vlt-command                 vlt not found in $PATH
info      secret-command              not set

Additional context

Hi, First of all, thank you for all of your work on this proejct and it reduces a lot of work while managing my dotfiles.
I've been maintaining a neovim plugin for chezmoi users, and it utilizes the chezmoi command such as chezmoi --source-path dot_zshrc. Today, i just found out that i couldn't run run_onchange_dot_zshrc script with chezmoi --source-path command.
Can i ask you if i'm doing somthing wrong or if this is something that is intentded?

My run_onchange_dot_zshrc file looks like below.

#!/bin/zsh
# vim:ft=zsh ts=2 sw=2 

# dot_zshrc hash: {{ include "dot_zshrc" | sha256sum }}
touch ~/test_file
@xvzc xvzc added the support Support request label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Support request
Projects
None yet
Development

No branches or pull requests

1 participant