Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg committed Sep 25, 2020
1 parent 03adedc commit 0f8f28f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dune_rules/watermarks.ml
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ let make_watermark_map ~commit ~version ~dune_project ~package =
in
let name = Dune_project.name dune_project in
let info = package.Package.info in
(* XXX these error messages aren't particularly good as these values do not
necessarily come from the project file. It's possible for them to be
defined in the .opam file directly*)
let make_value name = function
| None -> Error (sprintf "variable %S not found in dune-project file" name)
| Some value -> Ok value
Expand All @@ -240,7 +243,6 @@ let make_watermark_map ~commit ~version ~dune_project ~package =
in
let make_dev_repo_value = function
| Some (Package.Source_kind.Host h) ->
(* Is this right? shouldn't this include git+https? *)
Ok (Package.Source_kind.Host.homepage h)
| Some (Package.Source_kind.Url url) -> Ok url
| None -> Error (sprintf "variable dev-repo not found in dune-project file")
Expand Down

0 comments on commit 0f8f28f

Please sign in to comment.