@@ -1329,11 +1329,11 @@ end
13291329 mkpath (project_path)
13301330
13311331 # Create fake `Foo.jl` package with two files:
1332- foo_path = joinpath (depot, " dev" , " Foo " )
1332+ foo_path = joinpath (depot, " dev" , " Foo51989 " )
13331333 mkpath (joinpath (foo_path, " src" ))
1334- open (joinpath (foo_path, " src" , " Foo .jl" ); write= true ) do io
1334+ open (joinpath (foo_path, " src" , " Foo51989 .jl" ); write= true ) do io
13351335 println (io, """
1336- module Foo
1336+ module Foo51989
13371337 include("internal.jl")
13381338 end
13391339 """ )
@@ -1343,35 +1343,35 @@ end
13431343 end
13441344 open (joinpath (foo_path, " Project.toml" ); write= true ) do io
13451345 println (io, """
1346- name = "Foo "
1346+ name = "Foo51989 "
13471347 uuid = "00000000-0000-0000-0000-000000000001"
13481348 version = "1.0.0"
13491349 """ )
13501350 end
13511351
13521352 # In our depot, `dev` and then `precompile` this `Foo` package.
13531353 @test success (addenv (
1354- ` $(Base. julia_cmd ()) --project=$project_path --startup-file=no -e 'import Pkg; Pkg.develop("Foo "); Pkg.precompile(); exit(0)'` ,
1354+ ` $(Base. julia_cmd ()) --project=$project_path --startup-file=no -e 'import Pkg; Pkg.develop("Foo51989 "); Pkg.precompile(); exit(0)'` ,
13551355 " JULIA_DEPOT_PATH" => depot))
13561356
13571357 # Get the size of the generated `.ji` file so that we can ensure that it gets altered
1358- foo_compiled_path = joinpath (depot, " compiled" , " v$(VERSION . major) .$(VERSION . minor) " , " Foo " )
1358+ foo_compiled_path = joinpath (depot, " compiled" , " v$(VERSION . major) .$(VERSION . minor) " , " Foo51989 " )
13591359 cache_path = joinpath (foo_compiled_path, only (filter (endswith (" .ji" ), readdir (foo_compiled_path))))
13601360 cache_size = filesize (cache_path)
13611361
13621362 # Next, remove the dependence on `internal.jl` and delete it:
13631363 rm (joinpath (foo_path, " src" , " internal.jl" ))
1364- open (joinpath (foo_path, " src" , " Foo .jl" ); write= true ) do io
1364+ open (joinpath (foo_path, " src" , " Foo51989 .jl" ); write= true ) do io
13651365 truncate (io, 0 )
13661366 println (io, """
1367- module Foo
1367+ module Foo51989
13681368 end
13691369 """ )
13701370 end
13711371
13721372 # Try to load `Foo`; this should trigger recompilation, not an error!
13731373 @test success (addenv (
1374- ` $(Base. julia_cmd ()) --project=$project_path --startup-file=no -e 'using Foo ; exit(0)'` ,
1374+ ` $(Base. julia_cmd ()) --project=$project_path --startup-file=no -e 'using Foo51989 ; exit(0)'` ,
13751375 " JULIA_DEPOT_PATH" => depot,
13761376 ))
13771377
0 commit comments