diff --git a/README.md b/README.md index 37407c7..6022cea 100644 --- a/README.md +++ b/README.md @@ -47,8 +47,3 @@ Pkg.BinaryPlatforms.FreeBSD(:armv7l) - The parts of your dependencies that expect/require internet access will not work (this should be expected). - It's assumed your package is completely standalone, and won't need to be used with packages outside of the provided project file. - - -## Gotchas - -- Currently doesn't work with `Pkg.dev`-ed dependencies. diff --git a/src/DepotDelivery.jl b/src/DepotDelivery.jl index 3eaf024..a27575a 100644 --- a/src/DepotDelivery.jl +++ b/src/DepotDelivery.jl @@ -52,17 +52,12 @@ function build(path::String; platform = Base.BinaryPlatforms.HostPlatform(), ver Pkg.activate(joinpath(depot, "dev", name)) Pkg.instantiate(; platform, verbose) - # # Ensure all artifacts (including lazy ones) are installed for the correct platform - # manifest_file = replace(proj_file, "Project" => "Manifest") - # for (uuid, entry) in Pkg.Types.read_manifest(manifest_file) - # artifacts_path = @eval let - # name = $(Symbol(entry.name)) - # @eval import name - # Pkg.Artifacts.find_artifacts_toml(pathof(name)) - # end - # isnothing(artifacts_path) && continue - # Pkg.Artifacts.select_downloadable_artifacts(entry.name; platform, include_lazy=true) - # end + + # Add local/dev-ed packages to Project + manifest_file = joinpath(dirname(proj_file), replace(basename(proj_file), "Project" => "Manifest")) + for (uuid, entry) in Pkg.Types.read_manifest(manifest_file) + !isnothing(entry.path) && Pkg.dev(entry.path) + end open(io -> TOML.print(io, build_spec), joinpath(depot, "config", "depot_build.toml"), "w")