Skip to content

Commit 5214bc0

Browse files
authored
Separate UUID for the JuliaSyntax in sysimage (#37)
This allows us to use JuliaSyntax baked into the sysimage to develop a separate JuliaSyntax with Revise :-D
1 parent a547166 commit 5214bc0

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

sysimage/JuliaSyntaxCore/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ version = "0.1.0"
77
julia = "1.6"
88

99
[deps]
10-
JuliaSyntax = "70703baa-626e-46a2-a12c-08ffd08c73b4"
10+
JuliaSyntax = "54354a4c-6cac-4c00-8566-e7c1beb8bfd8"

sysimage/compile.jl

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,24 @@ using Libdl
1111

1212
cd(@__DIR__)
1313

14+
# Create a copy of JuliaSyntax so we can change the project UUID.
15+
# This allows us to use an older version of JuliaSyntax for developing
16+
# JuliaSyntax itself.
17+
rm("JuliaSyntax", force=true, recursive=true)
18+
mkdir("JuliaSyntax")
19+
cp("../src", "JuliaSyntax/src")
20+
cp("../test", "JuliaSyntax/test")
21+
projstr = replace(read("../Project.toml", String),
22+
"70703baa-626e-46a2-a12c-08ffd08c73b4"=>"54354a4c-6cac-4c00-8566-e7c1beb8bfd8")
23+
write("JuliaSyntax/Project.toml", projstr)
24+
1425
using Pkg
26+
rm("Project.toml", force=true)
27+
rm("Manifest.toml", force=true)
1528
Pkg.activate(".")
16-
Pkg.develop("JuliaSyntax")
29+
Pkg.develop(path="./JuliaSyntax")
1730
Pkg.develop(path="./JuliaSyntaxCore")
31+
Pkg.add("PackageCompiler")
1832

1933
image_path = joinpath(imgs_base_path, "juliasyntax_sysimage."*Libdl.dlext)
2034

0 commit comments

Comments
 (0)