-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
argo lint
outputs YAML to JSON conversion error twice when it's used with --offline
option
#14050
Comments
📝 Quick investigation note In argo-workflows/workflow/common/parse.go Line 50 in ef41f83
|
argo lint
prints YAML to JSON conversion error twice when it's used with --offline
optionargo lint
outputs YAML to JSON conversion error twice when it's used with --offline
option
I'd like to work on this issue |
@chansuke Thank you for raising PR for my issue, but removing support of the offline client doesn't feel a right option for me. |
So the ./dist/argo lint --offline invalid.yaml
Error: failed to parse YAML from file /home/pakio/program/oss/tmp/hello-world-invalid.yaml: error converting YAML to JSON: yaml: line 16: found a tab character that violates indentation
Usage:
argo lint FILE... [flags]
... I prefer the current behavior (warn and continue to the next file rather than failing the whole process) as invalid format is caught in |
@pakio Thank you so much for your feedback and sorry for the misunderstanding. And yes, I understood the structure now and agree your suggestion:
|
@chansuke Are you still willing to fix this issue? If you'd like to focus on any other task I can take this over. Since there were no feedback from the others for about a month, I suppose it would be acceptable to proceed with whatever works properly. |
Pre-requisites
:latest
image tag (i.e.quay.io/argoproj/workflow-controller:latest
) and can confirm the issue still exists on:latest
. If not, I have explained why, in detail, in my description below.What happened? What did you expect to happen?
argo lint
prints YAML to JSON conversion error twice when it's used with--offline
option.Version(s)
741ab0e
Paste a minimal workflow that reproduces the issue. We must be able to run the workflow; don't enter a workflow that uses private images.
Logs from in your workflow's wait container
The text was updated successfully, but these errors were encountered: