Skip to content

Commit da172f4

Browse files
kit-ty-katerjbou
authored andcommitted
OpamLockCommand.lock_opam: make the ?only_direct argument non-optional
1 parent 06d6b5f commit da172f4

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

master_changes.md

+1
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ users)
227227
* `OpamArg.hash_kinds`: was added [#5960 @kit-ty-kate]
228228
* `OpamRepositoryCommand.switch_repos`: expose the function [#5014 @kit-ty-kate]
229229
* `OpamLockCommand.lock_opam`: add `~keep_local` argument to add local pins to pin-depends (and not resolve them) [#6411 @rjbou]
230+
* `OpamLockCommand.lock_opam`: make the `?only_direct` argument non-optional [#6411 @kit-ty-kate]
230231

231232
## opam-repository
232233
* `OpamDownload.get_output`: fix `wget` option for `POST` requests [#6036 @rjbou]

src/client/opamCommands.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4407,7 +4407,7 @@ let lock cli =
44074407
let lock_suffix = OpamArg.lock_suffix cli in
44084408
let keep_local_flag =
44094409
mk_flag ~cli (cli_from cli2_4) ["keep-local"]
4410-
"Do not discard local pins from pin-depends."
4410+
"Keep local pin paths in 'pin-depends:' field."
44114411
in
44124412
let lock global_options only_direct lock_suffix keep_local atom_locs () =
44134413
apply_global_options cli global_options;

src/client/opamLockCommand.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ let get_git_url url nv dir =
128128
(OpamPackage.to_string nv);
129129
None)
130130

131-
let lock_opam ?(only_direct=false) ~keep_local st opam =
131+
let lock_opam ~only_direct ~keep_local st opam =
132132
let nv = OpamFile.OPAM.package opam in
133133
(* Depends *)
134134
let all_depends =

src/client/opamLockCommand.mli

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ val select_packages:
2727
resolved to a distant url and they are all added with their local path in
2828
'pin_depends:' field. *)
2929
val lock_opam:
30-
?only_direct:bool -> keep_local:bool ->
30+
only_direct:bool -> keep_local:bool ->
3131
'a switch_state -> OpamFile.OPAM.t -> OpamFile.OPAM.t

0 commit comments

Comments
 (0)