Skip to content

Commit

Permalink
OpamLockCommand.lock_opam: make the ?only_direct argument non-optional
Browse files Browse the repository at this point in the history
  • Loading branch information
kit-ty-kate authored and rjbou committed Mar 7, 2025
1 parent 22d73a1 commit a39bf90
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions master_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ users)
* `OpamArg.hash_kinds`: was added [#5960 @kit-ty-kate]
* `OpamRepositoryCommand.switch_repos`: expose the function [#5014 @kit-ty-kate]
* `OpamLockCommand.lock_opam`: add `~keep_local` argument to add local pins to pin-depends (and not resolve them) [#6411 @rjbou]
* `OpamLockCommand.lock_opam`: make the `?only_direct` argument non-optional [#6411 @kit-ty-kate]

## opam-repository
* `OpamDownload.get_output`: fix `wget` option for `POST` requests [#6036 @rjbou]
Expand Down
2 changes: 1 addition & 1 deletion src/client/opamCommands.ml
Original file line number Diff line number Diff line change
Expand Up @@ -4407,7 +4407,7 @@ let lock cli =
let lock_suffix = OpamArg.lock_suffix cli in
let keep_local_flag =
mk_flag ~cli (cli_from cli2_4) ["keep-local"]
"Do not discard local pins from pin-depends."
"Keep local pin paths in 'pin-depends:' field."
in
let lock global_options only_direct lock_suffix keep_local atom_locs () =
apply_global_options cli global_options;
Expand Down
2 changes: 1 addition & 1 deletion src/client/opamLockCommand.ml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ let get_git_url url nv dir =
(OpamPackage.to_string nv);
None)

let lock_opam ?(only_direct=false) ~keep_local st opam =
let lock_opam ~only_direct ~keep_local st opam =
let nv = OpamFile.OPAM.package opam in
(* Depends *)
let all_depends =
Expand Down
2 changes: 1 addition & 1 deletion src/client/opamLockCommand.mli
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ val select_packages:
be resolved to a distant url are added with their local path in
'pin_depends:' field. *)
val lock_opam:
?only_direct:bool -> keep_local:bool ->
only_direct:bool -> keep_local:bool ->
'a switch_state -> OpamFile.OPAM.t -> OpamFile.OPAM.t

0 comments on commit a39bf90

Please sign in to comment.