Skip to content

Commit e9f3ef0

Browse files
place registry pidfiles inside root registry directory
1 parent 821596e commit e9f3ef0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Registry/Registry.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ function update(regs::Vector{RegistrySpec} = RegistrySpec[]; io::IO=stderr_f(),
349349
for reg in unique(r -> r.uuid, find_installed_registries(io, regs); seen=Set{UUID}())
350350
let reg=reg
351351
regpath = pathrepr(reg.path)
352-
Pidfile.mkpidlock(joinpath(dirname(reg.path), ".pidlock")) do # only allow one julia process to update a registry at a time
352+
Pidfile.mkpidlock(joinpath(dirname(dirname(reg.path)), ".$(reg.name).pidlock")) do # only allow one julia process to update a registry at a time
353353
if reg.tree_info !== nothing
354354
printpkgstyle(io, :Updating, "registry at " * regpath)
355355
old_hash = reg.tree_info

0 commit comments

Comments
 (0)