From 92d86fd8f71cfe54ba1c1e28215060e256c0105f Mon Sep 17 00:00:00 2001 From: NathanFlurry Date: Thu, 6 Jun 2024 23:43:47 +0000 Subject: [PATCH] fix(mm): require specifying matchmaker config for new game versions (#895) This fixes both: - accidental `rivet deploy` with unconfigured rivet.yaml (which submits an empty object) - we don't handle unconfigured matchmaker correctly --- svc/pkg/game/ops/version-validate/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/svc/pkg/game/ops/version-validate/src/lib.rs b/svc/pkg/game/ops/version-validate/src/lib.rs index 8f803a8248..3a99a5fe30 100644 --- a/svc/pkg/game/ops/version-validate/src/lib.rs +++ b/svc/pkg/game/ops/version-validate/src/lib.rs @@ -1148,6 +1148,8 @@ async fn handle( } } } + } else { + errors.push(util::err_path!["config", "matchmaker", "missing",]); } // KV config validation