Skip to content

switch to go:embed #719

@cyphar

Description

@cyphar

The internet requirement of the validate subcommand has been a fairly regular annoyance when using this tool in CI jobs and the like (where it's possible for the GET to fail intermittently), not to mention that it means you can't do any config validation in an air-gapped setup.

In the past, using gojsonschema's support for embedded data was ruled out because it was too annoying to maintain, but now that Go 1.16 has the embed package with //go:embed it seems that we should be able to implement this in a fairly painless way.

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