Skip to content

Commit

Permalink
Hard-code the /tmp/ directory location.
Browse files Browse the repository at this point in the history
  • Loading branch information
sangaline committed Feb 24, 2024
1 parent 78b80ff commit 2e15be1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/cli/lint.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down Expand Up @@ -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`,
);
Expand Down
2 changes: 1 addition & 1 deletion src/cli/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2e15be1

Please sign in to comment.