Replies: 1 comment 1 reply
-
I do, because without committing your generated files, consumers of the repo have to have templ (and the right version of templ) installed to build the program. However, it does mean committing lots of generated files. If you don't like that, and you're in a CI/CD style environment, you could let your build server generate the files every time before compiling your program and that would work too. This repo has the following check: ensure-generated:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v23
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/magic-nix-cache-action@v2
- name: Generate
run: nix develop --command xc generate
- name: Ensure clean
run: git diff --exit-code Ignoring the Nix stuff, it basically runs |
Beta Was this translation helpful? Give feedback.
-
Basically title.
Beta Was this translation helpful? Give feedback.
All reactions