From 12241b2b72ed62aaa54b126db4c63b99790d5665 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Mon, 27 Jan 2025 21:12:30 -0500 Subject: [PATCH] fix(pin-inputs): remove this code from rg FIXME output --- apps/pin-inputs/src/app.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/pin-inputs/src/app.ts b/apps/pin-inputs/src/app.ts index 629d5b1d..0c71ca79 100644 --- a/apps/pin-inputs/src/app.ts +++ b/apps/pin-inputs/src/app.ts @@ -48,9 +48,11 @@ INPUTS.forEach((input) => { const inputsFile = `${FLAKE}/inputs/default.nix`; const rev = getCurrentRev(input); + const msg = ['FIX', 'ME'].join(); + replaceInFile( new RegExp(`(\\n[ ]*)${input} =.*\\n.*\\n.*`), - `$&\n$1 # FIXME: $1 rev = "${rev}";`, + `$&\n$1 # ${msg}: $1 rev = "${rev}";`, inputsFile, ); }