The linter found staticcheck and errorcheck issues. Deferred statements now use join to combine any new error with an existing one, preventing error information from being lost. Other minor error checks, like for printing text and flushing data have also been addressed.
In Ignition 2.x, the Parse() function from an individual config package
doesn't chain to earlier specs, but this code still assumed it does.
As a result, all configs with stable spec versions would fail on
ErrUnknownVersion, but we wouldn't notice because we were only looking
at the report and not the error return.
Switch to the high-level chaining parse function. Also, check for parse
errors that aren't included in the report.
To improve compatibility with Jekyll Markdown support, use an different
marker to signal valid Ignition configs that should be tested in the
documentation.
Bumps the import path to be `github.com/coreos/ignition/v2`, this is
required to be able to import the v2 of Ignition alongside v0 in other
repositories.
Lets use config/version instead of copying that to internal/config and
translating to it. This allow us to define extra functions on the types
for use by the internal code. This enable us to define functions
describing the "primary key" of all list entries in the config.
Ignition now ships with support for an experimental config. Because this
config is experimental, it is denoted with a semantic version
pre-release tag.