Commit 3b05d93
Backfill OS/distro provenance fields when loading old info.json
Adds a 0.2.3 migration step to ensure_compliant_schema that fills
the 14 new system.* provenance fields with empty strings when
reading info.json files written by older duct versions, so ls and
related consumers can rely on the fields being present.
Updates test_ls fixtures to include a "system" block (which has
existed in info.json since before MINIMUM_SCHEMA_VERSION) so the
new migration can run against them.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 7255ff5 commit 3b05d93
2 files changed
Lines changed: 59 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
135 | 154 | | |
136 | 155 | | |
137 | 156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
28 | 33 | | |
29 | 34 | | |
30 | 35 | | |
| |||
47 | 52 | | |
48 | 53 | | |
49 | 54 | | |
| 55 | + | |
50 | 56 | | |
51 | 57 | | |
52 | 58 | | |
| |||
96 | 102 | | |
97 | 103 | | |
98 | 104 | | |
99 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
100 | 110 | | |
101 | 111 | | |
102 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
103 | 130 | | |
104 | 131 | | |
105 | 132 | | |
| |||
142 | 169 | | |
143 | 170 | | |
144 | 171 | | |
145 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
146 | 178 | | |
147 | 179 | | |
148 | 180 | | |
| |||
174 | 206 | | |
175 | 207 | | |
176 | 208 | | |
| 209 | + | |
177 | 210 | | |
178 | 211 | | |
179 | 212 | | |
180 | 213 | | |
181 | 214 | | |
182 | 215 | | |
| 216 | + | |
183 | 217 | | |
184 | 218 | | |
185 | 219 | | |
186 | 220 | | |
187 | 221 | | |
188 | 222 | | |
| 223 | + | |
189 | 224 | | |
190 | 225 | | |
191 | 226 | | |
192 | 227 | | |
193 | 228 | | |
| 229 | + | |
194 | 230 | | |
195 | 231 | | |
196 | 232 | | |
197 | 233 | | |
198 | 234 | | |
| 235 | + | |
199 | 236 | | |
200 | 237 | | |
201 | 238 | | |
| |||
0 commit comments