Skip to content

git hook to track lazy-lock.json #1425

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

Open
m-faith opened this issue Mar 28, 2025 · 2 comments
Open

git hook to track lazy-lock.json #1425

m-faith opened this issue Mar 28, 2025 · 2 comments

Comments

@m-faith
Copy link

m-faith commented Mar 28, 2025

Rather than needing to have:

You likely want to remove lazy-lock.json from your fork's .gitignore file too - it's ignored in the kickstart repo to make maintenance easier, but it's recommended to track it in version control.

...in the instructions, we could have a git hook take care of this... like a pre-push (or something) hook script that rebases (or some other strategy) to remove the commit that added that line (or add a commit to delete the line, or whatever).

@feoh
Copy link
Collaborator

feoh commented Apr 9, 2025

Great idea but I don't think asking our very new neovim users to install git hooks is realistic.

@m-faith
Copy link
Author

m-faith commented Apr 13, 2025

I would recommend this for the devs/maintainers of this project. The git hook should automate the process, as part of deploy/build pipepline, so that .gitignore file is in the proper state when the new user clones the repo.

I don't know what would work best for maintainers workflow... perhaps keep lazy-lock.json ignored in a separate dev branch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants