mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
fix ci warnings
This commit is contained in:
13 files changed
+30
-22
No files matched your search
@@ -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,
|
||||
|
||||
@@ -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 = {};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user