Skip to content

Commit 0d33deb

Browse files
KenoKristofferC
authored andcommitted
precompile: Escape string in toml file (#2501)
Drive by fix for the following issue in the output of the precompile ``` ┌ Error: Error in the keymap │ exception = │ TOML Parser error: │ C:\users\keno\Temp\jl_qpEfxR\registries\Registry\T/TestPkg\Package.toml:3:12 error: invalid uncidode scalar │ repo = "C:\users\keno\Temp\jl_qpEfxR/TestPkg.jl" │ ^ │ Stacktrace: │ [1] parse │ @ .\toml_parser.jl:441 [inlined] │ [2] Base.CachedTOMLDict(p::Base.TOML.Parser, path::String) │ @ Base .\loading.jl:180 │ [3] (::Base.var"#810#811"{String, Base.TOMLCache})() │ @ Base .\loading.jl:226 └ @ REPL.LineEdit Z:\home\keno\julia-win64\usr\share\julia\stdlib\v1.7\REPL\src\LineEdit.jl:2579 ``` (cherry picked from commit 749541a)
1 parent 1f07453 commit 0d33deb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Pkg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ function _run_precompilation_script_setup()
637637
write("registries/Registry/T/TestPkg/Package.toml", """
638638
name = "TestPkg"
639639
uuid = "$uuid"
640-
repo = "$tmp/TestPkg.jl"
640+
repo = "$(escape_string(tmp))/TestPkg.jl"
641641
""")
642642
return tmp
643643
end

0 commit comments

Comments
 (0)