Skip to content

Commit ef9cd72

Browse files
.pidlock -> .pid to match convention
1 parent e9f3ef0 commit ef9cd72

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Registry/Registry.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ function download_registries(io::IO, regs::Vector{RegistrySpec}, depot::String=d
162162
populate_known_registries_with_urls!(regs)
163163
regdir = joinpath(depot, "registries")
164164
isdir(regdir) || mkpath(regdir)
165-
Pidfile.mkpidlock(joinpath(regdir, ".pidlock")) do # only allow one julia process to download and install registries at a time
165+
Pidfile.mkpidlock(joinpath(regdir, ".pid")) do # only allow one julia process to download and install registries at a time
166166
registry_urls = pkg_server_registry_urls()
167167
for reg in regs
168168
if reg.path !== nothing && reg.url !== nothing
@@ -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(dirname(reg.path)), ".$(reg.name).pidlock")) do # only allow one julia process to update a registry at a time
352+
Pidfile.mkpidlock(joinpath(dirname(dirname(reg.path)), ".$(reg.name).pid")) 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

src/Types.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ function write_env_usage(source_file::AbstractString, usage_filepath::AbstractSt
468468
timestamp = now()
469469

470470
## Atomically write usage file using process id locking
471-
Pidfile.mkpidlock(usage_file * ".pidlock") do
471+
Pidfile.mkpidlock(usage_file * ".pid") do
472472
usage = if isfile(usage_file)
473473
TOML.parsefile(usage_file)
474474
else

0 commit comments

Comments
 (0)