Skip to content

Commit db360de

Browse files
chore: build the action
1 parent 07c1e7f commit db360de

File tree

4 files changed

+30
-24
lines changed

4 files changed

+30
-24
lines changed

dist/restore-only/index.js

+10-10
Original file line numberDiff line numberDiff line change
@@ -84229,7 +84229,7 @@ drop table if exists DerivationOutputs;
8422984229

8423084230
create table DerivationOutputs
8423184231
(
84232-
drv integer not null,
84232+
drv integer not null, -- index of a path of a derivation in ValidPaths
8423384233
id text not null, -- symbolic output id, usually "out"
8423484234
path text not null,
8423584235
primary key (drv, id),
@@ -84344,14 +84344,11 @@ from DerivationOutputs1;
8434484344
-- Calculate updated derivation outputs for the second store
8434584345
-- =====
8434684346

84347-
-- drv | id | path
84347+
-- drv | id | path | drvPath
8434884348
drop view if exists DerivationIdPaths;
8434984349

84350-
84351-
-- TODO what is drv?
84352-
8435384350
create view DerivationIdPaths as
84354-
select drv, DerivationOutputs2.id, ValidPaths2_.path
84351+
select drv, DerivationOutputs2.id, DerivationOutputs2.path, ValidPaths2_.path as drvPath
8435584352
from DerivationOutputs2
8435684353
join (select id, path from ValidPaths2) as ValidPaths2_ on ValidPaths2_.id = drv;
8435784354

@@ -84360,9 +84357,9 @@ drop view if exists DerivationOutputs2Updated;
8436084357

8436184358
create view DerivationOutputs2Updated as
8436284359
select ValidPaths_.drvNew as drv, id, DerivationIdPaths_.path
84363-
from (select id, path from DerivationIdPaths) as DerivationIdPaths_
84360+
from (select id, path, drvPath from DerivationIdPaths) as DerivationIdPaths_
8436484361
join (select id as drvNew, path from ValidPaths) as ValidPaths_
84365-
on DerivationIdPaths_.path = ValidPaths_.path;
84362+
on DerivationIdPaths_.drvPath = ValidPaths_.path;
8436684363

8436784364
-- =====
8436884365
-- Insert updated derivation outputs from the second store
@@ -84741,10 +84738,10 @@ function getInputAsArray(name, options) {
8474184738
// https://github.com/NixOS/nix/blob/a047dec120672d00e069bacf10ffdda420fd1048/src/libutil/util.hh#L88
8474284739
function parseNixGcMax(name, options) {
8474384740
const input = core.getInput(name, options);
84744-
if (input.length == 0) {
84741+
const chars = [...input];
84742+
if (chars.length == 0) {
8474584743
return undefined;
8474684744
}
84747-
const chars = [...input];
8474884745
let result = 0;
8474984746
for (let i = 0; i < chars.length; i++) {
8475084747
const char = chars[i];
@@ -84757,10 +84754,13 @@ function parseNixGcMax(name, options) {
8475784754
switch (char) {
8475884755
case "K":
8475984756
result <<= 10;
84757+
break;
8476084758
case "M":
8476184759
result <<= 20;
84760+
break;
8476284761
case "G":
8476384762
result <<= 30;
84763+
break;
8476484764
default:
8476584765
result = NaN;
8476684766
}

dist/restore/index.js

+10-10
Original file line numberDiff line numberDiff line change
@@ -84229,7 +84229,7 @@ drop table if exists DerivationOutputs;
8422984229

8423084230
create table DerivationOutputs
8423184231
(
84232-
drv integer not null,
84232+
drv integer not null, -- index of a path of a derivation in ValidPaths
8423384233
id text not null, -- symbolic output id, usually "out"
8423484234
path text not null,
8423584235
primary key (drv, id),
@@ -84344,14 +84344,11 @@ from DerivationOutputs1;
8434484344
-- Calculate updated derivation outputs for the second store
8434584345
-- =====
8434684346

84347-
-- drv | id | path
84347+
-- drv | id | path | drvPath
8434884348
drop view if exists DerivationIdPaths;
8434984349

84350-
84351-
-- TODO what is drv?
84352-
8435384350
create view DerivationIdPaths as
84354-
select drv, DerivationOutputs2.id, ValidPaths2_.path
84351+
select drv, DerivationOutputs2.id, DerivationOutputs2.path, ValidPaths2_.path as drvPath
8435584352
from DerivationOutputs2
8435684353
join (select id, path from ValidPaths2) as ValidPaths2_ on ValidPaths2_.id = drv;
8435784354

@@ -84360,9 +84357,9 @@ drop view if exists DerivationOutputs2Updated;
8436084357

8436184358
create view DerivationOutputs2Updated as
8436284359
select ValidPaths_.drvNew as drv, id, DerivationIdPaths_.path
84363-
from (select id, path from DerivationIdPaths) as DerivationIdPaths_
84360+
from (select id, path, drvPath from DerivationIdPaths) as DerivationIdPaths_
8436484361
join (select id as drvNew, path from ValidPaths) as ValidPaths_
84365-
on DerivationIdPaths_.path = ValidPaths_.path;
84362+
on DerivationIdPaths_.drvPath = ValidPaths_.path;
8436684363

8436784364
-- =====
8436884365
-- Insert updated derivation outputs from the second store
@@ -84741,10 +84738,10 @@ function getInputAsArray(name, options) {
8474184738
// https://github.com/NixOS/nix/blob/a047dec120672d00e069bacf10ffdda420fd1048/src/libutil/util.hh#L88
8474284739
function parseNixGcMax(name, options) {
8474384740
const input = core.getInput(name, options);
84744-
if (input.length == 0) {
84741+
const chars = [...input];
84742+
if (chars.length == 0) {
8474584743
return undefined;
8474684744
}
84747-
const chars = [...input];
8474884745
let result = 0;
8474984746
for (let i = 0; i < chars.length; i++) {
8475084747
const char = chars[i];
@@ -84757,10 +84754,13 @@ function parseNixGcMax(name, options) {
8475784754
switch (char) {
8475884755
case "K":
8475984756
result <<= 10;
84757+
break;
8476084758
case "M":
8476184759
result <<= 20;
84760+
break;
8476284761
case "G":
8476384762
result <<= 30;
84763+
break;
8476484764
default:
8476584765
result = NaN;
8476684766
}

dist/save-only/index.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -76174,10 +76174,10 @@ function getInputAsArray(name, options) {
7617476174
// https://github.com/NixOS/nix/blob/a047dec120672d00e069bacf10ffdda420fd1048/src/libutil/util.hh#L88
7617576175
function parseNixGcMax(name, options) {
7617676176
const input = core.getInput(name, options);
76177-
if (input.length == 0) {
76177+
const chars = [...input];
76178+
if (chars.length == 0) {
7617876179
return undefined;
7617976180
}
76180-
const chars = [...input];
7618176181
let result = 0;
7618276182
for (let i = 0; i < chars.length; i++) {
7618376183
const char = chars[i];
@@ -76190,10 +76190,13 @@ function parseNixGcMax(name, options) {
7619076190
switch (char) {
7619176191
case "K":
7619276192
result <<= 10;
76193+
break;
7619376194
case "M":
7619476195
result <<= 20;
76196+
break;
7619576197
case "G":
7619676198
result <<= 30;
76199+
break;
7619776200
default:
7619876201
result = NaN;
7619976202
}

dist/save/index.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -76174,10 +76174,10 @@ function getInputAsArray(name, options) {
7617476174
// https://github.com/NixOS/nix/blob/a047dec120672d00e069bacf10ffdda420fd1048/src/libutil/util.hh#L88
7617576175
function parseNixGcMax(name, options) {
7617676176
const input = core.getInput(name, options);
76177-
if (input.length == 0) {
76177+
const chars = [...input];
76178+
if (chars.length == 0) {
7617876179
return undefined;
7617976180
}
76180-
const chars = [...input];
7618176181
let result = 0;
7618276182
for (let i = 0; i < chars.length; i++) {
7618376183
const char = chars[i];
@@ -76190,10 +76190,13 @@ function parseNixGcMax(name, options) {
7619076190
switch (char) {
7619176191
case "K":
7619276192
result <<= 10;
76193+
break;
7619376194
case "M":
7619476195
result <<= 20;
76196+
break;
7619576197
case "G":
7619676198
result <<= 30;
76199+
break;
7619776200
default:
7619876201
result = NaN;
7619976202
}

0 commit comments

Comments
 (0)