Skip to content

Commit

Permalink
Fix manifests on old Julia versions
Browse files Browse the repository at this point in the history
  • Loading branch information
davidanthoff committed Jan 12, 2025
1 parent 94684e9 commit f911aed
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions scripts/update_app_environments.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,15 @@ end
version_path = normpath(joinpath(@__DIR__, "../testprocess/environments/fallback"))
mkpath(version_path)
run(Cmd(`julia +nightly --project=. -e 'using Pkg; Pkg.develop(PackageSpec(path="../../TestItemServer"))'`, dir=version_path))

function replace_backslash_in_manifest(version)
filename = joinpath(@__DIR__, "../testprocess/environments/v$version/Manifest.toml")
manifest_content = read(filename, String)

new_content = replace(manifest_content, "\\\\"=>'/')

write(filename, new_content)
end

replace_backslash_in_manifest("1.0")
replace_backslash_in_manifest("1.1")
2 changes: 1 addition & 1 deletion testprocess/app/testserver_precompile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ let
if has_error_handler
global_err_handler(err, bt, Base.ARGS[2], "Test Process")
else
Base.display_error(err, bt)
rethrow(err)
end
end
end
2 changes: 1 addition & 1 deletion testprocess/environments/v1.0/Manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[[TestItemServer]]
deps = ["Base64", "Dates", "Distributed", "FileWatching", "InteractiveUtils", "LibGit2", "Logging", "Mmap", "Pkg", "REPL", "Random", "Sockets", "Test", "UUIDs", "Unicode"]
path = "..\\..\\TestItemServer"
path = "../../TestItemServer"
uuid = "1076c532-7f93-4758-ac65-93afa8eae143"
version = "1.0.0"

Expand Down
2 changes: 1 addition & 1 deletion testprocess/environments/v1.1/Manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[[TestItemServer]]
deps = ["Base64", "Dates", "Distributed", "FileWatching", "InteractiveUtils", "LibGit2", "Logging", "Mmap", "Pkg", "REPL", "Random", "Sockets", "Test", "UUIDs", "Unicode"]
path = "..\\..\\TestItemServer"
path = "../../TestItemServer"
uuid = "1076c532-7f93-4758-ac65-93afa8eae143"
version = "1.0.0"

Expand Down

0 comments on commit f911aed

Please sign in to comment.