File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -327,6 +327,16 @@ pub fn resolve_with_previous<'gctx>(
327
327
. gctx ( )
328
328
. acquire_package_cache_lock ( CacheLockMode :: DownloadExclusive ) ?;
329
329
330
+ // Some packages are already loaded when setting up a workspace. This
331
+ // makes it so anything that was already loaded will not be loaded again.
332
+ // Without this there were cases where members would be parsed multiple times
333
+ ws. preload ( registry) ;
334
+
335
+ // In case any members were not already loaded or the Workspace is_ephemeral.
336
+ for member in ws. members ( ) {
337
+ registry. add_sources ( Some ( member. package_id ( ) . source_id ( ) ) ) ?;
338
+ }
339
+
330
340
// Try to keep all from previous resolve if no instruction given.
331
341
let keep_previous = keep_previous. unwrap_or ( & |_| true ) ;
332
342
@@ -377,16 +387,6 @@ pub fn resolve_with_previous<'gctx>(
377
387
registry. lock_patches ( ) ;
378
388
}
379
389
380
- // Some packages are already loaded when setting up a workspace. This
381
- // makes it so anything that was already loaded will not be loaded again.
382
- // Without this there were cases where members would be parsed multiple times
383
- ws. preload ( registry) ;
384
-
385
- // In case any members were not already loaded or the Workspace is_ephemeral.
386
- for member in ws. members ( ) {
387
- registry. add_sources ( Some ( member. package_id ( ) . source_id ( ) ) ) ?;
388
- }
389
-
390
390
let summaries: Vec < ( Summary , ResolveOpts ) > = ws
391
391
. members_with_features ( specs, cli_features) ?
392
392
. into_iter ( )
You can’t perform that action at this time.
0 commit comments