Fixup support for Nix 2.23.0 and later

This commit is contained in:
Cole Helbling 2024-06-28 13:37:59 -07:00 committed by Cole Helbling
parent b0723e0fae
commit db4ee38117
4 changed files with 27 additions and 6 deletions

7
dist/index.js vendored
View file

@ -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

File diff suppressed because one or more lines are too long