Skip to content

Commit

Permalink
Use Base.require to load Pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Jun 25, 2019
1 parent ffe613c commit cd10c4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Run.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ existingproject(name) = checkexisting(projecttomlpath(name))
const prepare_code = """
parentproject, = ARGS
using Pkg
Pkg = Base.require(Base.PkgId(Base.UUID(0x44cfe95a1eb252eab672e2afdf69b78f), "Pkg"))
Base.HOME_PROJECT[] === nothing && error("No project specified")
if !any(isfile.(joinpath.(Base.HOME_PROJECT[], ("JuliaManifest.toml", "Manifest.toml"))))
@info "Manifest.toml is missing. Adding `\$parentproject` in dev mode."
Pkg.develop(PackageSpec(path=parentproject))
Pkg.develop(Pkg.PackageSpec(path=parentproject))
end
@info "Instantiating..."
Expand Down

0 comments on commit cd10c4d

Please sign in to comment.