File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -483,10 +483,19 @@ module Prep = struct
483
483
opamfiles : (bool * string ) Current .or_error OpamPackage.Map .t ;
484
484
}
485
485
486
- let digest { prep; base = _ ; tools_base = _ ; config = _ ; opamfiles = _ } =
486
+ let digest { prep; base = _ ; tools_base = _ ; config = _ ; opamfiles } =
487
487
(* base is derived from 'prep' so we don't need to include it in the hash *)
488
- Fmt. str " %s\n %s\n %s\n " prep_version (Package. digest prep)
489
- (Package. digest prep)
488
+ let opamfiles_hash =
489
+ let buf = Buffer. create 1024 in
490
+ let () = OpamPackage.Map. iter (fun _ x ->
491
+ match x with
492
+ | Ok (_has_depext , opamfile ) ->
493
+ Buffer. add_string buf opamfile
494
+ | _ -> () ) opamfiles in
495
+ Hashtbl. hash (Buffer. contents buf)
496
+ in
497
+ Fmt. str " %s\n %s\n %s\n %d\n " prep_version (Package. digest prep)
498
+ (Package. digest prep) opamfiles_hash
490
499
end
491
500
492
501
let pp f Key. { prep; _ } = Fmt. pf f " Voodoo prep %a" Package. pp prep
You can’t perform that action at this time.
0 commit comments