Skip to content

Commit 6c566af

Browse files
place registry pidfiles inside root registry directory
1 parent 2d2f28f commit 6c566af

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
@@ -394,7 +394,7 @@ function update(regs::Vector{RegistrySpec} = RegistrySpec[]; io::IO=stderr_f(),
394394
for reg in unique(r -> r.uuid, find_installed_registries(io, regs); seen=Set{UUID}())
395395
let reg=reg, errors=errors
396396
regpath = pathrepr(reg.path)
397-
Pidfile.mkpidlock(joinpath(dirname(reg.path), ".pidlock")) do # only allow one julia process to update a given registry at a time
397+
Pidfile.mkpidlock(joinpath(dirname(dirname(reg.path)), ".$(reg.name).pidlock")) do # only allow one julia process to update a registry at a time
398398
let regpath=regpath
399399
if reg.tree_info !== nothing
400400
printpkgstyle(io, :Updating, "registry at " * regpath)

0 commit comments

Comments
 (0)