nix-community.nixvim/templates/_wrapper
2024-01-06 00:05:13 +01:00
..
simple templates: switch to flake-parts 2024-01-06 00:05:13 +01:00
README.md templates/README: update regarding template lock file management 2023-12-13 23:53:58 +01:00

templates/_wrapper

This directory contains wrapper flakes for the nixvim templates. The purpose of the wrappers is to be able to run tests on templates deterministically on the branch or PR that is being worked on. It does this by overwriting the url of nixvim and other dependencies to a path within this repo.

It is also used in the github workflows, so that we can always check if the template is working or not

NOTE: It is important that we do not commit the flake.lock files here as that could cause problems with the check once any files are updated outside the wrapper. That is why we add them to .gitignore. Finally, the nix flake check command for templates should be called with the --no-write-lock-file flag.