diff --git a/example/FakePkg/Project.toml b/example/FakePkg/Project.toml index 7c7aba5..e589c42 100644 --- a/example/FakePkg/Project.toml +++ b/example/FakePkg/Project.toml @@ -8,3 +8,12 @@ Comonicon = "863f3e99-da2a-4334-8734-de3dacbe5542" FromFile = "ff7dd447-1dcb-4ce3-b8ac-22a812192de7" PkgTemplates = "14b8a8f1-9102-5b29-a752-f990bacb7fe1" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" + +[weakdeps] +DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab" + +[compat] +DelimitedFiles = "1" + +[extras] +DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab" diff --git a/src/builder/sysimg.jl b/src/builder/sysimg.jl index 79caf46..f8bd9bb 100644 --- a/src/builder/sysimg.jl +++ b/src/builder/sysimg.jl @@ -43,6 +43,12 @@ function create_command_env(m::Module, envpath::String = mktempdir(); test_deps: cmd_project = Pkg.Types.Project() merge!(cmd_project.deps, ctx.env.project.deps) merge!(cmd_project.compat, ctx.env.project.compat) + if hasproperty(ctx.env.project, :extras) + merge!(cmd_project.extras, ctx.env.project.extras) + end + if hasproperty(ctx.env.project, :weakdeps) + merge!(cmd_project.weakdeps, ctx.env.project.weakdeps) + end # add the package to dependencies cmd_project.deps[ctx.env.project.name] = ctx.env.project.uuid