From 2e15be1a44476a8d7a1c5f506e1c6d1a86b3afe3 Mon Sep 17 00:00:00 2001 From: Evan Sangaline Date: Sat, 24 Feb 2024 15:03:18 -0700 Subject: [PATCH] Hard-code the /tmp/ directory location. --- src/cli/lint.ts | 4 ++-- src/cli/utils.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cli/lint.ts b/src/cli/lint.ts index 52defe7..5bbcd15 100644 --- a/src/cli/lint.ts +++ b/src/cli/lint.ts @@ -1,7 +1,6 @@ import assert from "assert"; import { randomUUID } from "crypto"; import { existsSync, readFileSync, unlinkSync } from "fs"; -import os from "os"; import path from "path"; import process from "process"; @@ -195,7 +194,8 @@ export const lintCommand = new Command() "Running static analysis with Circomspect by Trail of Bits...", ); const sarifFile = path.join( - os.tmpdir(), + "/", + "/tmp/", "sindri", `circomspect-${randomUUID()}.sarif`, ); diff --git a/src/cli/utils.ts b/src/cli/utils.ts index d13b575..9452af3 100644 --- a/src/cli/utils.ts +++ b/src/cli/utils.ts @@ -299,7 +299,7 @@ export async function execDockerCommand( // Circuit project root. `${mountDirectory}:/sindri`, // Shared temporary directory. - `${os.tmpdir()}/sindri/:/tmp/sindri/`, + `/tmp/sindri/:/tmp/sindri/`, ], }, OpenStdin: tty,