feat(updateScript): clean up output
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-10-30 02:27:07 -04:00
parent 8fa5398008
commit 8570bf8ef4
5 changed files with 15 additions and 8 deletions

View file

@ -15,7 +15,7 @@ in
inherit (packageJSON) version;
src = ./.;
npmDepsHash = "sha256-hNXuZi3kgst0wBzoOwNAthEXW5MrafDD6D3Zwzp0S78=";
npmDepsHash = "sha256-3fU6eS6CPqBhD1zmsHnZs7Pk2mEiucPMrOSdS81+Ml8=";
runtimeInputs = [
(callPackage ../../nixosModules/docker/updateImage.nix {})

Binary file not shown.

View file

@ -10,12 +10,12 @@
"@eslint/js": "9.13.0",
"@stylistic/eslint-plugin": "2.9.0",
"@types/eslint__js": "8.42.3",
"@types/node": "22.7.7",
"@types/node": "22.8.4",
"esbuild": "0.24.0",
"eslint": "9.13.0",
"eslint-plugin-jsdoc": "50.4.3",
"jiti": "2.3.3",
"typescript": "5.6.3",
"typescript-eslint": "8.10.0"
"typescript-eslint": "8.12.2"
}
}

View file

@ -73,12 +73,12 @@ if (args['a'] || args['all']) {
});
const output = [
'chore: update flake.lock',
`Flake Inputs:\n${flakeOutput}`,
'chore: update flake.lock\n',
`Flake Inputs:\n${flakeOutput}\n`,
`Docker Images:\n${dockerOutput}`,
`Firefox Addons:\n${firefoxOutput}`,
`Misc Sources:\n${vuetorrentOutput}`,
].join('\n\n');
`Firefox Addons:\n${firefoxOutput}\n`,
`Misc Sources:\n${vuetorrentOutput}\n`,
].join('\n');
if (args['f']) {
writeFileSync(args['f'] as string, output);

View file

@ -23,6 +23,13 @@ export const updateFlakeInputs = () => {
.map((l) => l
.replace(/.{33}\?narHash=sha256[^']*/, '')
.replace(/&rev=(.{7})[^'&]*/, (_, backref) => `&rev=${backref}`))
.filter((input) => ![
'systems',
'flake-utils',
'flake-parts',
'treefmt-nix',
'lib-aggregate',
].some((inputName) => input.startsWith(`• Updated input '${inputName}'`)))
.join('\n');
return output;