Skip to content

Replace yaml.v3 with encoding/json in the disk cache #35

@JamieMagee

Description

@JamieMagee

gopkg.in/yaml.v3 is only used in internal/cache/handlers.go for serializing the db.yaml cache metadata file. The structs are flat and simple — encoding/json from the standard library works fine here.

The cache is ephemeral (rebuilt each run), so changing the format from YAML to JSON has no backward-compatibility concern. The file would become db.json instead of db.yaml.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions