Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Conversation

radeksm
Copy link

@radeksm radeksm commented Dec 15, 2024

Orginal logic does not make distinction between situation when:

  1. yq is missing, not installed, this problem is addressed here: deps: add yq as installation dependency instructlab#2796
  2. when yq found a problem with the format and validation command failed

This commit separate scenario [1] and [2]. Also improve warning messages, allows user to re-run the yq command and help find a problem within qna.yaml file.

Orginal logic does not make distinction between situation when:
 1. yq is missing, not installed, this problem is addressed here:
    instructlab/instructlab#2796
 2. when yq found a problem with the format and validation
    command failed

This commit separate scenario [1] and [2]. Also improve warning
messages, allows user to re-run the yq command and help find a problem
within qna.yaml file.

Signed-off-by: Radoslaw Smigielski <[email protected]>
Copy link
Contributor

@bjhargrave bjhargrave left a comment

Choose a reason for hiding this comment

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

I think any issue you see here is caused by using the incorrect yq command. See instructlab/instructlab#2796 (comment). If you use the yq python package, the line operator does not exist and you will get an error.

So a better idea might be to advise the user upon the operator error that they need to use the proper yq command, https://github.com/mikefarah/yq, and not the yq python package.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants