mirror of
https://github.com/DeterminateSystems/nix-installer-action.git
synced 2024-12-23 05:22:21 +01:00
?
This commit is contained in:
parent
6c3f3aaa10
commit
08888a1feb
2 changed files with 16 additions and 5 deletions
15
dist/index.js
generated
vendored
15
dist/index.js
generated
vendored
|
@ -90887,7 +90887,7 @@ const external_node_dns_promises_namespaceObject = __WEBPACK_EXTERNAL_createRequ
|
||||||
var cache = __nccwpck_require__(6878);
|
var cache = __nccwpck_require__(6878);
|
||||||
;// CONCATENATED MODULE: external "node:child_process"
|
;// CONCATENATED MODULE: external "node:child_process"
|
||||||
const external_node_child_process_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:child_process");
|
const external_node_child_process_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:child_process");
|
||||||
;// CONCATENATED MODULE: ./node_modules/.pnpm/github.com+DeterminateSystems+detsys-ts@587b7693c9842add262f500274f83458ca5ce770_6sj4em4j5br4ek4v5n2gpc224m/node_modules/detsys-ts/dist/index.js
|
;// CONCATENATED MODULE: ./node_modules/.pnpm/github.com+DeterminateSystems+detsys-ts@2e8b52ef6f516caef4c88593cd71aee68fc5e4ae_xjnerncbz5oexhjk6ww5y6g6n4/node_modules/detsys-ts/dist/index.js
|
||||||
var __defProp = Object.defineProperty;
|
var __defProp = Object.defineProperty;
|
||||||
var __export = (target, all) => {
|
var __export = (target, all) => {
|
||||||
for (var name in all)
|
for (var name in all)
|
||||||
|
@ -91730,8 +91730,19 @@ function parseEtag(etag) {
|
||||||
chunks
|
chunks
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
async function verifyEtag(filename, expectedEtag) {
|
function cleanEtag(inputEtag) {
|
||||||
|
let etag = inputEtag;
|
||||||
|
if (etag.startsWith("W/")) {
|
||||||
|
etag = etag.substring(2);
|
||||||
|
}
|
||||||
|
if (etag.startsWith('"') && etag.endsWith('"')) {
|
||||||
|
etag = etag.substring(1, etag.length - 1);
|
||||||
|
}
|
||||||
|
return etag;
|
||||||
|
}
|
||||||
|
async function verifyEtag(filename, quotedExpectedEtag) {
|
||||||
try {
|
try {
|
||||||
|
const expectedEtag = cleanEtag(quotedExpectedEtag);
|
||||||
const parsedEtag = parseEtag(expectedEtag);
|
const parsedEtag = parseEtag(expectedEtag);
|
||||||
if (parsedEtag === void 0) {
|
if (parsedEtag === void 0) {
|
||||||
core.info(
|
core.info(
|
||||||
|
|
|
@ -16,7 +16,7 @@ dependencies:
|
||||||
version: 5.1.1
|
version: 5.1.1
|
||||||
detsys-ts:
|
detsys-ts:
|
||||||
specifier: github:DeterminateSystems/detsys-ts#verify-etag
|
specifier: github:DeterminateSystems/detsys-ts#verify-etag
|
||||||
version: github.com/DeterminateSystems/detsys-ts/587b7693c9842add262f500274f83458ca5ce770
|
version: github.com/DeterminateSystems/detsys-ts/2e8b52ef6f516caef4c88593cd71aee68fc5e4ae
|
||||||
got:
|
got:
|
||||||
specifier: ^14.3.0
|
specifier: ^14.3.0
|
||||||
version: 14.3.0
|
version: 14.3.0
|
||||||
|
@ -5753,10 +5753,10 @@ packages:
|
||||||
engines: { node: ">=10" }
|
engines: { node: ">=10" }
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
github.com/DeterminateSystems/detsys-ts/587b7693c9842add262f500274f83458ca5ce770:
|
github.com/DeterminateSystems/detsys-ts/2e8b52ef6f516caef4c88593cd71aee68fc5e4ae:
|
||||||
resolution:
|
resolution:
|
||||||
{
|
{
|
||||||
tarball: https://codeload.github.com/DeterminateSystems/detsys-ts/tar.gz/587b7693c9842add262f500274f83458ca5ce770,
|
tarball: https://codeload.github.com/DeterminateSystems/detsys-ts/tar.gz/2e8b52ef6f516caef4c88593cd71aee68fc5e4ae,
|
||||||
}
|
}
|
||||||
name: detsys-ts
|
name: detsys-ts
|
||||||
version: 1.0.0
|
version: 1.0.0
|
||||||
|
|
Loading…
Reference in a new issue