From 1b17be8de456b487a377de714c301c10222660e9 Mon Sep 17 00:00:00 2001 From: Kate Date: Tue, 19 Sep 2023 13:42:49 +0100 Subject: [PATCH] Enable -warn-error +partial-match by default to ensure changes in a dependency do not lead into unforseen runtime failures --- lib/opam_build.ml | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/opam_build.ml b/lib/opam_build.ml index efa72e09..165ab2eb 100644 --- a/lib/opam_build.ml +++ b/lib/opam_build.ml @@ -125,6 +125,7 @@ let setup_repository ?(local=false) ~variant ~for_docker ~opam_version () = env "OPAMSOLVERTIMEOUT" "500" :: (* Increase timeout. Poor mccs is doing its best *) env "OPAMPRECISETRACKING" "1" :: (* Mitigate https://github.com/ocaml/opam/issues/3997 *) env "CI" "true" :: env "OPAM_REPO_CI" "true" :: (* Advertise CI for test frameworks *) + env "OCAMLPARAM" "warn-error=+8,_" :: (* https://github.com/ocaml/ocaml/issues/12475 *) [ run "rm -rf opam-repository/"; copy ["."] ~dst:"opam-repository/";