mirror of
https://github.com/DeterminateSystems/update-flake-lock.git
synced 2025-04-21 09:20:16 +03:00
Use nix flake update if no inputs are specified
This commit is contained in:
parent
7352b7f36b
commit
fc5dacd10b
4 changed files with 12 additions and 17 deletions
7
dist/index.js
vendored
7
dist/index.js
vendored
|
@ -94331,11 +94331,8 @@ function makeNixCommandArgs(nixOptions, flakeInputs, commitMessage) {
|
|||
"--update-input",
|
||||
input
|
||||
]);
|
||||
return nixOptions.concat(["flake", "lock"]).concat(flakeInputFlags).concat([
|
||||
"--commit-lock-file",
|
||||
"--commit-lockfile-summary",
|
||||
`"${commitMessage}"`
|
||||
]);
|
||||
const updateLockMechanism = flakeInputFlags.length === 0 ? "update" : "lock";
|
||||
return nixOptions.concat(["flake", updateLockMechanism]).concat(flakeInputFlags).concat(["--commit-lock-file", "--commit-lockfile-summary", commitMessage]);
|
||||
}
|
||||
|
||||
// src/index.ts
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue