fix ci warnings

This commit is contained in:
undefined committed 2025-07-24 14:00:13 +08:00
1 parent 98d9ddf97a
commit 4b2d4c74cd
13 files changed
+30 -22

No files matched your search

+2 -2
View File
@@ -8,13 +8,13 @@
"dependencies": {
"@hydrooj/common": "workspace:^",
"@hydrooj/utils": "workspace:^",
"@zip.js/zip.js": "^2.7.64",
"@zip.js/zip.js": "^2.7.68",
"cac": "^6.7.14",
"p-queue": "^8.1.0",
"schemastery": "^3.16.1",
"semver": "^7.7.2",
"shell-quote": "^1.8.3",
"superagent": "^10.2.2",
"superagent": "^10.2.3",
"ws": "^8.18.3"
},
"preferUnplugged": true,
+4 -1
View File
@@ -127,7 +127,10 @@ export class JudgeTask {
if (filenames.length) {
logger.info(`Getting problem data: ${this.session?.config.host || 'local'}/${source}`);
this.next({ message: 'Syncing testdata, please wait...' });
await this.session.fetchFile(source, Object.fromEntries(files.map((i) => [i.name, join(filePath, i.name)])));
await this.session.fetchFile(source, Object.fromEntries(
files.filter((i) => filenames.includes(i.name))
.map((i) => [i.name, join(filePath, i.name)]),
));
await fs.writeFile(join(filePath, 'etags'), JSON.stringify(version));
this.compileCache = {};
}