Code Monkey home page Code Monkey logo

Comments (5)

twpayne avatar twpayne commented on June 9, 2024

What are the exact commands that reproduce the problem?

chezmoi execute-template is for testing and debugging templates. There is no reason to run it on a new machine.

What refers to /Users/jmccown/.why-is-chezmoi-looking-here-at-all-i-dont-know? This string is only mentioned once, without context.

What refers to /Users/jmccown/.local/share/chezmoi/chez-ignore/scripts/core/scripts/cbi/set-branchname-for-ticket? This string is also mentioned only once, without context.

If you want people to help you then you have to do the minimum work of describing your problem in a way that they have enough information to debug what could be wrong.

from chezmoi.

jackmac92 avatar jackmac92 commented on June 9, 2024

@twpayne apologies for the really bad report. I was overtired

I found the issue on my end is not caused by chezmoi, but quick description of how I broke it.
The symlink file in question is broken on the new machine. It is a non-chezmoi symlink which was broken because I made it on linux and it points to /home

below is directly from my terminal, and what was stumping me.

chezmoi --verbose execute-template                                                                                                           ─╯
Alias tip: cz --verbose execute-template
chezmoi: stat /Users/jmccown/.local/share/chezmoi/chez-ignore/scripts/core/scripts/cbi/set-branchname-for-ticket: no such file or directory

Execute template "seemed" more stateless, so I was surprised it cared about that file from my source dir at all.
I'm still not sure why that caused execute-template to fail, but I can rework the symlink problem that seems to be the root cause.

from chezmoi.

jackmac92 avatar jackmac92 commented on June 9, 2024

If the error w/ execute-template is something you want to look into I can try to make a small repo to reproduce the issue. Otherwise feel free to close this

from chezmoi.

twpayne avatar twpayne commented on June 9, 2024

Thank you for following up!

I would love a repo that reproduces the issue. Fixing this bug now means that people won't encounter it in the future which will helps me and all current and future chezmoi users :)

from chezmoi.

twpayne avatar twpayne commented on June 9, 2024

Hopefully this is now resolved. Please re-open if needed.

from chezmoi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.