Skip to content

Commit dfd1758

Browse files
kit-ty-katerjbou
authored andcommitted
Fix #6374 once again
1 parent 9647c28 commit dfd1758

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/client/opamAuxCommands.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,9 @@ let autopin st ?(simulate=false) ?quiet ?locked ?recurse ?subpath
546546
OpamUpdate.dev_packages st ~working_dir:OpamPackage.Set.empty already_pinned
547547
in
548548
let st =
549-
if OpamClientConfig.(!r.ignore_pin_depends) then st else
549+
(* NOTE: We skip pin-depends on non-simulated because handle_pin_depends has
550+
already been called in source_pin *)
551+
if not simulate || OpamClientConfig.(!r.ignore_pin_depends) then st else
550552
OpamPackage.Set.fold (fun nv st ->
551553
OpamPinCommand.handle_pin_depends st nv (OpamSwitchState.opam st nv))
552554
(OpamPackage.Set.union pins already_pinned_set) st

tests/reftests/autopin.test

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -401,10 +401,6 @@ The following additional pinnings are required by local-with-pin-deps.dev:
401401
Pin and install them? [Y/n] n
402402
Try to install anyway, assuming `--ignore-pin-depends'? [Y/n] y
403403
local-with-pin-deps is now pinned to file://${BASEDIR}/local-with-pin-deps (version dev)
404-
The following additional pinnings are required by local-with-pin-deps.dev:
405-
- pin-dep.dev at file://${BASEDIR}/pin-dep
406-
Pin and install them? [Y/n] n
407-
Try to install anyway, assuming `--ignore-pin-depends'? [Y/n] y
408404

409405
<><> Installing new switch packages <><><><><><><><><><><><><><><><><><><><><><>
410406
Switch invariant: ["ocaml" {>= "4.05.0"}]

0 commit comments

Comments
 (0)