From f7b87d6934ea05d35e3ee0576e7d82d3b67b001e Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 4 May 2026 09:51:44 +0900 Subject: fix(resolver): normalize bare branch atoms to dev-NAME in root aliases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Composer's VersionParser::normalize maps `master`/`trunk`/`default` (with or without `dev-` prefix) to `dev-NAME`, not `9999999-dev`. Mozart was emitting the four-segment 9999999 form for these atoms in normalize_root_alias_atom, so a root require like `dev-master as 1.1.0` recorded its target as `9999999.9999999.9999999.9999999-dev` and never matched the pool's `dev-master` entry — the alias was silently dropped and transitive `^1.1` requires couldn't see the materialized 1.1.0 alias. --- crates/mozart/tests/installer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/mozart') diff --git a/crates/mozart/tests/installer.rs b/crates/mozart/tests/installer.rs index 955a1ad..729e9db 100644 --- a/crates/mozart/tests/installer.rs +++ b/crates/mozart/tests/installer.rs @@ -388,7 +388,7 @@ installer_fixture!(update_allow_list_removes_unused); installer_fixture!(update_allow_list_require_new_replace); installer_fixture!(update_allow_list_warns_non_existing_patterns); installer_fixture!(update_allow_list_with_dependencies); -installer_fixture!(update_allow_list_with_dependencies_alias, ignore); +installer_fixture!(update_allow_list_with_dependencies_alias); installer_fixture!(update_allow_list_with_dependencies_new_requirement); installer_fixture!(update_allow_list_with_dependencies_require_new); installer_fixture!(update_allow_list_with_dependencies_require_new_replace); -- cgit v1.3.1