mirror of
https://github.com/anchore/syft
synced 2024-11-10 06:14:16 +00:00
74013d7da7
* [wip] try to reflect metadata types... probably wont work Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * refactor to add unit test to ensure there is coverage in the schema Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * [wip] generate metadata container Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * add generation of metadata container struct for JSON schema generation Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * fix linting Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * update linter script to account for code generation Signed-off-by: Alex Goodman <alex.goodman@anchore.com> --------- Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
17 lines
440 B
Bash
Executable file
17 lines
440 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -u
|
|
|
|
if [ "$(git status --porcelain | wc -l)" -ne "0" ]; then
|
|
echo " 🔴 there are uncommitted changes, please commit them before running this check"
|
|
exit 1
|
|
fi
|
|
|
|
if ! make generate-json-schema; then
|
|
echo "Generating json schema failed"
|
|
exit 1
|
|
fi
|
|
|
|
if [ "$(git status --porcelain | wc -l)" -ne "0" ]; then
|
|
echo " 🔴 there are uncommitted changes, please commit them before running this check"
|
|
exit 1
|
|
fi
|