mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
bump version beta.1
This commit is contained in:
33 files changed
+1027
-1007
No files matched your search
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@hydrooj/hydrojudge",
|
||||
"bin": "bin/hydrojudge.js",
|
||||
"version": "3.5.0-beta.0",
|
||||
"version": "3.5.0-beta.1",
|
||||
"main": "./src/index.ts",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||
|
||||
@@ -193,7 +193,14 @@ export class JudgeTask {
|
||||
type: 'interactor' | 'validator' | 'checker' | 'generator' | 'manager' | 'std',
|
||||
source: CompilableSource, checkerType?: string,
|
||||
): Promise<Execute> {
|
||||
if (type === 'checker' && ['default', 'strict'].includes(checkerType)) return { execute: '', copyIn: {}, clean: () => Promise.resolve(null) };
|
||||
if (type === 'checker' && ['default', 'strict'].includes(checkerType)) {
|
||||
return {
|
||||
execute: '',
|
||||
copyIn: {},
|
||||
clean: () => Promise.resolve(null),
|
||||
[Symbol.asyncDispose]: () => Promise.resolve(null),
|
||||
};
|
||||
}
|
||||
if (type === 'checker' && !checkers[checkerType]) throw new FormatError('Unknown checker type {0}.', [checkerType]);
|
||||
if (this.compileCache?.[type]) {
|
||||
return {
|
||||
@@ -238,6 +245,7 @@ export class JudgeTask {
|
||||
this.compileCache[type] = {
|
||||
execute: result.execute,
|
||||
copyIn: newCopyIn,
|
||||
[Symbol.asyncDispose]: () => Promise.resolve(null),
|
||||
};
|
||||
await get((result.copyIn[result._cacheable] as PreparedFile).fileId, loc);
|
||||
const currEtag = await fs.readFile(join(this.folder, 'etags'), 'utf-8');
|
||||
|
||||
Reference in new issue
Block a user