Skip to content

Commit

Permalink
always print lock file when waiting
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Doris committed Mar 22, 2023
1 parent 5dbe1b6 commit 8248ef8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/resolve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,7 @@ function resolve(; force::Bool=false, io::IO=stderr, interactive::Bool=false, dr
lock = try
Pidfile.mkpidlock(lock_file; wait=false)
catch
interactive && _log(io, "Waiting for lock to be freed at $lock_file")
interactive && _log(io, "(You may delete this file if you are sure no other process is resolving)")
@info "CondaPkg: Waiting for lock to be freed. You may delete this file if no other process is resolving." lock_file
Pidfile.mkpidlock(lock_file; wait=true)
end
try
Expand Down

0 comments on commit 8248ef8

Please sign in to comment.