• Matt Butcher's avatar
    fix(repo): auto-update index file formats · ea0e665f
    Matt Butcher authored
    This performs a relatively weak in-memory translation of index file
    data. It does not, in most cases, write the corrected data to disk, and
    it emits a warning directly to STDERR each time it loads a deprecated
    index.
    
    Known limitations:
    
    - It cannot recover certain bogus records that earlier alpha releases
      generated (notably, where all chartfile data is missing)
    - In some cases, it has to parse a filename to get version info. This is
      lossy.
    - Because it takes three passes through the YAML and JSON unmarshal, it
      is not performant.
    
    This feature is transitional and should be removed during the Beta
    cycle, prior to the release of 2.0.0.
    
    Closes #1265
    ea0e665f
index_test.go 6.81 KB