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

ct lint output crops useful information #67

Open
tpolekhin opened this issue May 19, 2021 · 1 comment
Open

ct lint output crops useful information #67

tpolekhin opened this issue May 19, 2021 · 1 comment
Labels
documentation Improvements or additions to documentation question Further information is requested

Comments

@tpolekhin
Copy link

Action output in workflow logs crops lint output about specific lines with issues

Output in the action logs:

Linting chart 'chart-1 => (version: "0.0.0", path: "charts/chart-1")'
Validating /path/to/git/repo/charts/chart-1/Chart.yaml...
Validation success! 👍
Validating maintainers...
Linting chart 'chart-2 => (version: "0.0.0", path: "charts/chart-2")'
Validating /path/to/git/repo/charts/chart-2/Chart.yaml...
Validation success! 👍
##[error][indentation] wrong indentation: expected 2 but found 4
##[error][indentation] wrong indentation: expected 2 but found 4
Error: Error linting charts: Error processing charts
------------------------------------------------------------------------------------------------------------------------
 ✖︎ chart-1 => (version: "0.0.0", path: "charts/chart-1") > Chart doesn't have maintainers
 ✖︎ chart-2 => (version: "0.0.0", path: "charts/chart-2") > Error waiting for process: exit status 1
------------------------------------------------------------------------------------------------------------------------
Error linting charts: Error processing charts
##[error]Process completed with exit code 1.

Output on local run:

Linting chart 'chart-1 => (version: "0.0.0", path: "charts/chart-1")'
Validating /path/to/git/repo/charts/chart-1/Chart.yaml...
Validation success! 👍
Validating maintainers...
Linting chart 'chart-2 => (version: "0.0.0", path: "charts/chart-2")'
Validating /path/to/git/repo/charts/chart-2/Chart.yaml...
Validation success! 👍
charts/chart-2/values.yaml
  19:5      error    wrong indentation: expected 2 but found 4  (indentation)
  20:5      error    wrong indentation: expected 2 but found 4  (indentation)

------------------------------------------------------------------------------------------------------------------------
 ✖︎ chart-1 => (version: "0.0.0", path: "charts/chart-1") > Chart doesn't have maintainers
 ✖︎ chart-2 => (version: "0.0.0", path: "charts/chart-2") > Error waiting for process: exit status 1
------------------------------------------------------------------------------------------------------------------------
Error: Error linting charts: Error processing charts
Error linting charts: Error processing charts
@gcaracuel
Copy link

I do have same problem, I have ensured I use exactly same command line options in local but action logs still are empty.
I does mention the error as the example above but not the file causing the error nor the lines of that file that requires a fix.

@cpanato cpanato added documentation Improvements or additions to documentation question Further information is requested labels Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants