From d6287b15b1a255ba9cb5d3e2c63963cb1c04860b Mon Sep 17 00:00:00 2001 From: undefined Date: Sun, 9 Feb 2025 20:18:29 +0800 Subject: [PATCH] fix ci build --- package.json | 4 ++-- packages/hydrojudge/src/hosts/hydro.ts | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 871d45c5b..2f00a2ce1 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "build:ui:dev:https": "node packages/ui-default/build --iconfont && node --trace-deprecation packages/ui-default/build --dev --https", "build:ui:production": "cross-env NODE_OPTIONS=--max_old_space_size=8192 node packages/ui-default/build --iconfont && node packages/ui-default/build --production", "build:ui:production:webpack": "cross-env NODE_OPTIONS=--max_old_space_size=8192 node packages/ui-default/build --production", - "test": "node -r @hydrooj/register packages/utils/tests/subtask.spec.ts && node test/entry.js", + "test": "node -r @hydrooj/register packages/common/tests/subtask.spec.ts && node test/entry.js", "benchmark": "cross-env BENCHMARK=true node test/entry.js", "lint": "eslint packages plugins modules --ext .ts,.tsx,.jsx --fix", "lint:ci": "eslint packages plugins modules --ext .ts,.tsx,.jsx --max-warnings=0", @@ -51,7 +51,7 @@ "fs-extra": "^11.3.0", "globby": "^14.0.2", "inspectpack": "^4.7.1", - "mongodb-memory-server": "9.4.1", + "mongodb-memory-server": "10.1.3", "nyc": "^17.1.0", "ora": "^8.2.0", "package-json": "^10.0.1", diff --git a/packages/hydrojudge/src/hosts/hydro.ts b/packages/hydrojudge/src/hosts/hydro.ts index 541efe4b2..645ca2b33 100644 --- a/packages/hydrojudge/src/hosts/hydro.ts +++ b/packages/hydrojudge/src/hosts/hydro.ts @@ -13,7 +13,6 @@ import { compilerVersions, stackSize as getStackSize } from '../info'; import { Session } from '../interface'; import log from '../log'; import { JudgeTask } from '../task'; -import { Lock } from '../utils'; function removeNixPath(text: string) { return text.replace(/\/nix\/store\/[a-z0-9]{32}-/g, '/nix/');