Commit 4c561be
test(objectql): align install/duplicate tests with #2540 durable persistence
Two objectql protocol tests asserted the pre-#2540 behavior:
- installPackage used to SKIP sys_packages persistence for versionless
manifests (the {id,name} shape the builder/Setup create), so base
packages vanished on restart (#2532). It now defaults version to
'0.1.0' and persists. Test updated to expect persistence with the
defaulted version.
- duplicatePackage used to do a bare registry.installPackage write and
keep the source scope. It now routes through installPackage (so the
copy also lands in sys_packages) and strips scope (a duplicate must be
a writable base, not inherit the source's read-only scope). Test
updated to assert the routed call + scope stripped.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 0b7b056 commit 4c561be
2 files changed
Lines changed: 18 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
85 | 88 | | |
86 | 89 | | |
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
90 | 93 | | |
91 | 94 | | |
92 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
93 | 99 | | |
94 | 100 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
152 | 158 | | |
153 | 159 | | |
154 | 160 | | |
| |||
0 commit comments