mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-28 08:53:34 +00:00
fix(package): accept uppercase artifact digests
This commit is contained in:
@@ -376,7 +376,7 @@ async function sha256(file) {
|
||||
}
|
||||
|
||||
function assertSha256(value) {
|
||||
if (!/^[a-f0-9]{64}$/u.test(value)) {
|
||||
if (!/^[a-f0-9]{64}$/iu.test(value)) {
|
||||
throw new Error(`package_sha256 must be a lowercase or uppercase 64-character SHA-256 digest`);
|
||||
}
|
||||
}
|
||||
@@ -393,6 +393,8 @@ async function assertExpectedSha256(file, expected) {
|
||||
return actual;
|
||||
}
|
||||
|
||||
export const assertExpectedSha256ForTest = assertExpectedSha256;
|
||||
|
||||
async function findSingleTarball(dir) {
|
||||
const root = path.resolve(ROOT_DIR, dir);
|
||||
const pending = [root];
|
||||
|
||||
Reference in New Issue
Block a user