mirror of
https://github.com/DeterminateSystems/update-flake-lock.git
synced 2025-07-02 03:13:48 +03:00
lockfile-summary, d'oh
This commit is contained in:
parent
6d82bce8ec
commit
7352b7f36b
7 changed files with 15 additions and 15 deletions
|
@ -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,
|
||||
|
|
|
@ -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"',
|
||||
],
|
||||
},
|
||||
|
|
|
@ -14,7 +14,7 @@ export function makeNixCommandArgs(
|
|||
.concat(flakeInputFlags)
|
||||
.concat([
|
||||
"--commit-lock-file",
|
||||
"--commit-lock-file-summary",
|
||||
"--commit-lockfile-summary",
|
||||
`"${commitMessage}"`,
|
||||
]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue