Commit 82b18da
committed
fix: set defaulted_keys in lockfile parsing for both formats (GREEN)
Fix both lockfile parsing implementations to properly set defaulted_keys
with the "_initialized" sentinel required by write_repodata_record().
Changes:
- env_lockfile_conda.cpp: Copy defaulted_keys from from_url() result
- env_lockfile_mambajs.cpp: Set defaulted_keys = {"_initialized"}
(lockfile data is authoritative, so no fields are "defaulted")
This fix is required after the env_lockfile.cpp refactoring that split
the implementation into separate files for conda and mambajs formats.
Test Status: ALL TESTS PASS (GREEN phase)
- lockfile_packages_have_initialized_in_defaulted_keys-conda: PASSED
- lockfile_packages_have_initialized_in_defaulted_keys-mambajs: PASSED
- All existing tests: PASSED
Tests fixed:
- test_lockfile[condalock-True] (Python integration test that was failing in CI)
Related: #40951 parent 0f204a6 commit 82b18da
File tree
2 files changed
+9
-0
lines changed- libmamba/src/core
2 files changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
76 | 80 | | |
77 | 81 | | |
78 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
99 | 104 | | |
100 | 105 | | |
101 | 106 | | |
| |||
0 commit comments