Skip to content

Commit c182174

Browse files
KristofferCKristofferC
authored andcommitted
install / update registries for app add in the same way as for packages (#4443)
(cherry picked from commit 7993fc7)
1 parent 7249bb8 commit c182174

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Apps/Apps.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ using Pkg.Types: AppInfo, PackageSpec, Context, EnvCache, PackageEntry, Manifest
77
using Pkg.Operations: print_single, source_path, update_package_add
88
using Pkg.API: handle_package_input!
99
using TOML, UUIDs
10+
using Dates
1011
import Pkg.Registry
1112

1213
app_env_folder() = joinpath(first(DEPOT_PATH), "environments", "apps")
@@ -183,6 +184,9 @@ function add(pkg::PackageSpec)
183184
handle_package_input!(pkg)
184185

185186
ctx = app_context()
187+
188+
Pkg.Operations.update_registries(ctx; force = false, update_cooldown = Day(1))
189+
186190
manifest = ctx.env.manifest
187191
new = false
188192

0 commit comments

Comments
 (0)