From aa1f5882c78e678560b0ac7a8487d5a8c0fdcd63 Mon Sep 17 00:00:00 2001 From: "D. Moonfire" Date: Thu, 7 Mar 2024 19:50:46 -0600 Subject: [PATCH] docs: added a news post --- mfgames-website.json | 3 +++ news/2024-03-07-added-file-ignoring.md | 17 +++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 mfgames-website.json create mode 100644 news/2024-03-07-added-file-ignoring.md diff --git a/mfgames-website.json b/mfgames-website.json new file mode 100644 index 0000000..c32a995 --- /dev/null +++ b/mfgames-website.json @@ -0,0 +1,3 @@ +{ + "slug": "mfgames-project-setup-flake" +} diff --git a/news/2024-03-07-added-file-ignoring.md b/news/2024-03-07-added-file-ignoring.md new file mode 100644 index 0000000..2184928 --- /dev/null +++ b/news/2024-03-07-added-file-ignoring.md @@ -0,0 +1,17 @@ +# Adding File Ignoring + +While using this flake, it became obvious that there were a few things that were +still rough around the edges. In specific, we didn't add `/.direnv/` to the +`.gitignore` file sof if we weren't careful, we would be adding the entire +environment into the check-in. + +The other was that some of the generated files (`DGO.md` in specific) would be +added via Nixago, then formatted as part of our `treefmt` call in `lefthook`, +then checked-in. As soon as someone went into the environment, Nixago would +notice that the file was different (because of formatting) and would regenerate +it, leading to an endless loop of generation/formatting. + +In both cases, we needed the ability to add files to various ignore files +(`.gitignore` in the first case and `.prettierignore` in the second). The v0.1.0 +check-in does that, and also avoids reformatting the license files along the +way.