From ae1144a634be32b96006441e17b67d610d3308f9 Mon Sep 17 00:00:00 2001 From: Ibraheem Ahmed Date: Wed, 24 Apr 2024 10:52:41 -0400 Subject: [PATCH] add transitive incompatible versions scenario --- scenarios/incompatible-versions.json | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/scenarios/incompatible-versions.json b/scenarios/incompatible-versions.json index 3f4b2e50..b9ab7688 100644 --- a/scenarios/incompatible-versions.json +++ b/scenarios/incompatible-versions.json @@ -88,5 +88,29 @@ "expected": { "satisfiable": false } + }, + { + "name": "transitive-incompatible-versions", + "description": "The user requires `a`, which requires two incompatible, existing versions of package `b`", + "root": { + "requires": [ + "a==1.0.0" + ] + }, + "packages": { + "a": { + "versions": { + "1.0.0": { + "requires": [ + "b==2.0.0", + "b==1.0.0" + ] + } + } + } + }, + "expected": { + "satisfiable": false + } } -] \ No newline at end of file +]