Use nix flake update if no inputs are specified
This commit is contained in:
10
src/nix.ts
10
src/nix.ts
@@ -9,12 +9,10 @@ export function makeNixCommandArgs(
|
||||
input,
|
||||
]);
|
||||
|
||||
const updateLockMechanism = flakeInputFlags.length === 0 ? "update" : "lock";
|
||||
|
||||
return nixOptions
|
||||
.concat(["flake", "lock"])
|
||||
.concat(["flake", updateLockMechanism])
|
||||
.concat(flakeInputFlags)
|
||||
.concat([
|
||||
"--commit-lock-file",
|
||||
"--commit-lockfile-summary",
|
||||
`"${commitMessage}"`,
|
||||
]);
|
||||
.concat(["--commit-lock-file", "--commit-lockfile-summary", commitMessage]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user