Skip to content

Commit

Permalink
wip [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKarpinski committed Apr 17, 2018
1 parent 8f76391 commit 10fd8e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stdlib/Pkg3/src/API.jl
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ function build(ctx::Context, pkgs::Vector{PackageSpec}; kwargs...)
end

init() = init(Context())
init(path::String) = init(Context(), path)
init(path::String) = init(Context(env=EnvCache(joinpath(path, "Project.toml"))), path)
function init(ctx::Context, path::String=pwd())
print_first_command_header()
Context!(ctx; env = EnvCache(joinpath(path, "Project.toml")))
Expand Down
3 changes: 1 addition & 2 deletions stdlib/Pkg3/test/pkg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ include("utils.jl")
const TEST_PKG = (name = "Example", uuid = UUID("7876af07-990d-54b4-ab0e-23690620f79a"))

temp_pkg_dir() do project_path
@show LOAD_PATH
@show readdir(project_path)
@testset "simple add and remove with preview" begin
Pkg3.init(project_path)
Pkg3.add(TEST_PKG.name; preview = true)
Expand Down Expand Up @@ -117,6 +115,7 @@ temp_pkg_dir() do project_path
end

@testset "stdlibs as direct dependency" begin
@show LOAD_PATH
uuid_pkg = (name = "CRC32c", uuid = UUID("8bf52ea8-c179-5cab-976a-9e18b702a9bc"))
Pkg3.add("CRC32c")
@test haskey(Pkg3.installed(), uuid_pkg.name)
Expand Down

0 comments on commit 10fd8e4

Please sign in to comment.