Commit 8b0a936
committed
don't duplicate pre-release charts in
Prior to this commit chart-releaser would incorrectly parse pre-release
versions, e.g. v25.1.1-beta2, due to naively splitting on the last
index. This would result in calling `IndexFile.Get` with just `beta2`
and trigger a reinsertion of the pre-release version upon every call to
`cr index`.
This commit removes the file name based parsing altogether and instead
preemptively parses the chart metadata to avoid such complications all
together.
It should be noted this commit highlights a pre-existing issue more
clearly but intentionally does not fix it: chart-releaser can *not*
update an existing index.yaml entry.
Signed-off-by: Chris Seto <[email protected]>index.yaml
1 parent 2181d19 commit 8b0a936
2 files changed
+35
-59
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
179 | 178 | | |
180 | 179 | | |
181 | 180 | | |
| |||
255 | 254 | | |
256 | 255 | | |
257 | 256 | | |
258 | | - | |
| 257 | + | |
259 | 258 | | |
260 | 259 | | |
261 | 260 | | |
262 | 261 | | |
263 | 262 | | |
264 | 263 | | |
265 | | - | |
| 264 | + | |
266 | 265 | | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
267 | 272 | | |
268 | 273 | | |
269 | 274 | | |
270 | 275 | | |
271 | | - | |
| 276 | + | |
272 | 277 | | |
273 | 278 | | |
274 | 279 | | |
| |||
284 | 289 | | |
285 | 290 | | |
286 | 291 | | |
287 | | - | |
| 292 | + | |
288 | 293 | | |
289 | 294 | | |
290 | 295 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
| 249 | + | |
287 | 250 | | |
288 | 251 | | |
289 | 252 | | |
| |||
336 | 299 | | |
337 | 300 | | |
338 | 301 | | |
339 | | - | |
| 302 | + | |
340 | 303 | | |
341 | 304 | | |
| 305 | + | |
342 | 306 | | |
343 | | - | |
344 | | - | |
| 307 | + | |
| 308 | + | |
345 | 309 | | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
352 | 318 | | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
353 | 324 | | |
354 | 325 | | |
355 | 326 | | |
| |||
0 commit comments