You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
src = pwd(): A String/Vector{String} of the project path/paths containing Project.toml or JuliaProject.toml files.
dest::String = <tempdir>: The depot directory to populate.
platform::AbstractPlatform = <host platform>: The target Base.BinaryPlatforms.Platform.
triplet = nothing: The target triplet of the platform to build for. If not nothing, it overrides platform.
verbose = true: Whether to display verbose output during the build process (default is true).
precompiled = false: Whether to enable precompilation of packages.
Returns:
dest::String
Examples
using DepotDelivery
# `path/Project.toml` (or `path/JuliaProject.toml`) must exist
path =abspath(joinpath(pathof(DepotDelivery), "..", ".."))
depot = DepotDelivery.build(path)
Then in your production environment, either:
Replace the .julia/ directory with depot
Run include(joinpath(depot, "config", "startup.jl")) to begin your Julia session.
Notes
General
Be aware that build will copy everything inside the source directories to depot/dev/. Avoid populating those directories with unnecessary files. For example, when starting a new project, it's better to run julia --project=./isolated_folder/ rather than julia --project=., as in the latter case the Project.toml file will coexist with other stuff.
Building for Non-Host Platforms
Use any Base.BinaryPlatforms.AbstractPlatform as the platform or target triplet as the triplet.