lockfile-summary, d'oh

This commit is contained in:
Graham Christensen 2024-05-06 17:45:12 -04:00
parent 6d82bce8ec
commit 7352b7f36b
7 changed files with 15 additions and 15 deletions

View file

@ -28,10 +28,10 @@ class UpdateFlakeLockAction {
async update(): Promise<void> {
// Nix command of this form:
// nix ${maybe nix options} flake lock ${maybe --update-input flags} --commit-lock-file --commit-lock-file-summary ${commit message}
// nix ${maybe nix options} flake lock ${maybe --update-input flags} --commit-lock-file --commit-lockfile-summary ${commit message}
// Example commands:
// nix --extra-substituters https://example.com flake lock --update-input nixpkgs --commit-lock-file --commit-lock-file-summary "updated flake.lock"
// nix flake lock --commit-lock-file --commit-lock-file-summary "updated flake.lock"
// nix --extra-substituters https://example.com flake lock --update-input nixpkgs --commit-lock-file --commit-lockfile-summary "updated flake.lock"
// nix flake lock --commit-lock-file --commit-lockfile-summary "updated flake.lock"
const nixCommandArgs: string[] = makeNixCommandArgs(
this.nixOptions,
this.flakeInputs,

View file

@ -24,7 +24,7 @@ test("Nix command arguments", () => {
"flake",
"lock",
"--commit-lock-file",
"--commit-lock-file-summary",
"--commit-lockfile-summary",
'"just testing"',
],
},
@ -42,7 +42,7 @@ test("Nix command arguments", () => {
"--update-input",
"rust-overlay",
"--commit-lock-file",
"--commit-lock-file-summary",
"--commit-lockfile-summary",
'"just testing"',
],
},
@ -57,7 +57,7 @@ test("Nix command arguments", () => {
"flake",
"lock",
"--commit-lock-file",
"--commit-lock-file-summary",
"--commit-lockfile-summary",
'"just testing"',
],
},

View file

@ -14,7 +14,7 @@ export function makeNixCommandArgs(
.concat(flakeInputFlags)
.concat([
"--commit-lock-file",
"--commit-lock-file-summary",
"--commit-lockfile-summary",
`"${commitMessage}"`,
]);
}