Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug CI failure #584

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ os:
- linux
- osx
julia:
- 0.6
- nightly
notifications:
email: false
script:
- julia -e 'include("debug.jl")'
33 changes: 33 additions & 0 deletions debug.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import Pkg
@show LOAD_PATH
@show pwd()
@show readdir(pwd())
ctx = Pkg.Types.Context()
@show ctx.env.project_file

project_file = ctx.env.project_file
project = Pkg.Types.read_project(project_file)
@show project
@show k = any(haskey.((project,), ["name", "uuid", "version"]))
project_package = nothing
if k
project_package = Pkg.Types.PackageSpec(
get(project, "name", ""),
UUID(get(project, "uuid", 0)),
VersionNumber(get(project, "version", "0.0")),
)
end

@show project_package


@show ctx.env.pkg.name
@show ctx.env.pkg.uuid

pkg = Pkg.Types.PackageSpec("Compat")
@show Pkg.Types.is_project_name(ctx.env, pkg.name)
pkgs = [pkg]
Pkg.Types.project_resolve!(ctx.env, pkgs)
@show pkg.uuid
@show Pkg.Types.ensure_resolved(ctx.env, pkgs)
Pkg.build("Compat")