Skip to content

Commit

Permalink
lockfile-summary, d'oh
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamc committed May 8, 2024
1 parent 6d82bce commit 7352b7f
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -93396,7 +93396,7 @@ const external_node_path_namespaceObject = __WEBPACK_EXTERNAL_createRequire(impo
const external_node_stream_promises_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:stream/promises");
;// CONCATENATED MODULE: external "node:zlib"
const external_node_zlib_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:zlib");
;// CONCATENATED MODULE: ./node_modules/.pnpm/github.com+DeterminateSystems+detsys-ts@38e5bec8265276e0ffc60a474eeb0fe563690ad1_ohjjfxyz5zc5v7acp635bu77r4/node_modules/detsys-ts/dist/index.js
;// CONCATENATED MODULE: ./node_modules/.pnpm/github.com+DeterminateSystems+detsys-ts@2391ba1ef3d22027cd4d9ecce147007a88f63643_is35d24tynybsms6zejuqsabhi/node_modules/detsys-ts/dist/index.js
var __defProp = Object.defineProperty;
var __export = (target, all) => {
for (var name in all)
Expand Down Expand Up @@ -94333,7 +94333,7 @@ function makeNixCommandArgs(nixOptions, flakeInputs, commitMessage) {
]);
return nixOptions.concat(["flake", "lock"]).concat(flakeInputFlags).concat([
"--commit-lock-file",
"--commit-lock-file-summary",
"--commit-lockfile-summary",
`"${commitMessage}"`
]);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"dependencies": {
"@actions/core": "^1.10.1",
"@actions/exec": "^1.1.1",
"detsys-ts": "github:DeterminateSystems/detsys-ts#array-inputs"
"detsys-ts": "github:DeterminateSystems/detsys-ts"
},
"devDependencies": {
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions src/nix.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ test("Nix command arguments", () => {
"flake",
"lock",
"--commit-lock-file",
"--commit-lock-file-summary",
"--commit-lockfile-summary",
'"just testing"',
],
},
Expand All @@ -42,7 +42,7 @@ test("Nix command arguments", () => {
"--update-input",
"rust-overlay",
"--commit-lock-file",
"--commit-lock-file-summary",
"--commit-lockfile-summary",
'"just testing"',
],
},
Expand All @@ -57,7 +57,7 @@ test("Nix command arguments", () => {
"flake",
"lock",
"--commit-lock-file",
"--commit-lock-file-summary",
"--commit-lockfile-summary",
'"just testing"',
],
},
Expand Down
2 changes: 1 addition & 1 deletion src/nix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function makeNixCommandArgs(
.concat(flakeInputFlags)
.concat([
"--commit-lock-file",
"--commit-lock-file-summary",
"--commit-lockfile-summary",
`"${commitMessage}"`,
]);
}

0 comments on commit 7352b7f

Please sign in to comment.