Skip to content

Commit 1d392db

Browse files
authored
Merge pull request #12895 from jkrumbiegel/jk/no-copyfilesync
Make Julia env copying robust against read-only scenarios
2 parents 7a31ab7 + 10e6f2d commit 1d392db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/execute/julia.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ async function ensureQuartoNotebookRunnerEnvironment(
397397
) {
398398
const projectTomlTemplate = juliaResourcePath("Project.toml");
399399
const projectToml = join(juliaRuntimeDir(), "Project.toml");
400-
Deno.copyFileSync(projectTomlTemplate, projectToml);
400+
Deno.writeFileSync(projectToml, Deno.readFileSync(projectTomlTemplate));
401401
const command = new Deno.Command(juliaCmd(), {
402402
args: [
403403
"--startup-file=no",

0 commit comments

Comments
 (0)