Skip to content

Commit

Permalink
missing change from workaround packages with no version entry JuliaLa…
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Dec 3, 2020
1 parent e2e1387 commit ff1f0a0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/API.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,7 @@ function precompile(ctx::Context; internal_call::Bool=false, kwargs...)
println(io, " Interrupted: Exiting precompilation...")
end
else
rethrow(err)
@error "Pkg.precompile error" exception=(err, catch_backtrace())
end
end

Expand Down Expand Up @@ -1096,7 +1096,8 @@ function precompile(ctx::Context; internal_call::Bool=false, kwargs...)

suspended = if haskey(man, pkg.uuid) # to handle the working environment uuid
pkgent = man[pkg.uuid]
precomp_suspended(PackageSpec(uuid = pkg.uuid, name = pkgent.name, version = pkgent.version, tree_hash = pkgent.tree_hash))
pkgver = something(pkgent.version, VersionSpec())
precomp_suspended(PackageSpec(uuid = pkg.uuid, name = pkgent.name, version = pkgver, tree_hash = pkgent.tree_hash))
else
false
end
Expand Down

0 comments on commit ff1f0a0

Please sign in to comment.