mirror of
https://github.com/DeterminateSystems/update-flake-lock.git
synced 2025-04-22 01:32:03 +03:00
Fixup support for Nix 2.23.0 and later
This commit is contained in:
parent
b0723e0fae
commit
db4ee38117
4 changed files with 27 additions and 6 deletions
7
dist/index.js
vendored
7
dist/index.js
vendored
|
@ -95086,8 +95086,13 @@ function makeNixCommandArgs(nixOptions, flakeInputs, commitMessage) {
|
|||
"--update-input",
|
||||
input
|
||||
]);
|
||||
const lockfileSummaryFlags = [
|
||||
"--option",
|
||||
"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]);
|
||||
return nixOptions.concat(["flake", updateLockMechanism]).concat(flakeInputFlags).concat(["--commit-lock-file"]).concat(lockfileSummaryFlags);
|
||||
}
|
||||
|
||||
// src/index.ts
|
||||
|
|
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue