Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release-info: Test its format as part of 'make test'
This commit makes use of `//go:embed` to run the content of `release-info.json` through golang `json.Valid` to check if it's valid JSON. This is better/simpler than using `jq` as we don't have to change all our container images/CI envs/... to make sure `jq` is installed, and `json.Valid` uses the same json parser as crc so this avoids possible differences of behaviour between json parsers. The `cross-lint` target must depend on `gen_release_info` otherwise it fails: ``` release_info_test.go:9:12: pattern release-info.json: no matching files found (typecheck) ``` Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
- Loading branch information