Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENT-10944: cfbs build/download: Added validation and error messages #164

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

olehermanse
Copy link
Member

Added many helpful error messages to tell the user what
is wrong with their cfbs.json (why they cannot run cfbs
build or cfbs download).

The config must have a build field, with a list of modules,
each module must have a name, a non-empty list of steps,
each step must be a non-empty string, etc.

Ticket: ENT-10944

Added many helpful error messages to tell the user what
is wrong with their cfbs.json (why they cannot run cfbs
build or cfbs download).

The config must have a build field, with a list of modules,
each module must have a name, a non-empty list of steps,
each step must be a non-empty string, etc.

Ticket: ENT-10944
Signed-off-by: Ole Herman Schumacher Elgesem <ole.elgesem@northern.tech>
Copy link
Contributor

@larsewi larsewi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 🚀 Should also be added to the cfbs validate command?

@olehermanse
Copy link
Member Author

@larsewi not in the current state. This validation is for the things needed for cfbs build to work. I guess we want cfbs validate to work for all cfbs.json files, so we'd have to make it less strict / more smart.

@olehermanse olehermanse merged commit bd14f47 into cfengine:master Nov 29, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants