judge: cache: skip copyIn

This commit is contained in:
undefined committed 2025-02-17 08:18:04 +08:00
1 parent 81d69adfb0
commit fc0fd0fe29
1 file changed
+5 -1
+5 -1
View File
@@ -223,9 +223,13 @@ export class JudgeTask {
await Lock.acquire(this.folder);
try {
const loc = join(this.folder, `_${type}.cache`);
const newCopyIn = { ...result.copyIn, [result._cacheable]: { src: loc } };
// compiled checker should no longer need header file
// delete this copyIn as it's shipped with hydrojudge and may disappear after upgrade
delete newCopyIn['testlib.h'];
this.compileCache[type] = {
execute: result.execute,
copyIn: { ...result.copyIn, [result._cacheable]: { src: loc } },
copyIn: newCopyIn,
};
await get((result.copyIn[result._cacheable] as PreparedFile).fileId, loc);
const currEtag = await fs.readFile(join(this.folder, 'etags'), 'utf-8');