Skip to content

Commit

Permalink
_
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg committed Sep 24, 2023
1 parent 64e4953 commit 0cb6fca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/dune_pkg/lock_dir.ml
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ module Repositories = struct
; used : Opam_repo.Serializable.t list option
}

let default = { complete = false; used = None }

let equal { complete; used } t =
Bool.equal complete t.complete
&& Option.equal (List.equal Opam_repo.Serializable.equal) used t.used
Expand Down Expand Up @@ -376,7 +378,9 @@ let decode_metadata =
let open Decoder in
fields
(let+ ocaml = field_o "ocaml" (located Package_name.decode)
and+ repos = field "repositories" Repositories.decode in
and+ repos =
field "repositories" ~default:Repositories.default Repositories.decode
in
ocaml, repos)
;;

Expand Down

0 comments on commit 0cb6fca

Please sign in to comment.