Skip to content

Commit

Permalink
enable dev-ed packages
Browse files Browse the repository at this point in the history
  • Loading branch information
joshday committed Jun 25, 2024
1 parent 6b6cb61 commit 00bc3ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
17 changes: 6 additions & 11 deletions src/DepotDelivery.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 00bc3ea

Please sign in to comment.