Closed ctron closed 2 years ago
+1 - ran into this myself. If you run the ct command natively it will provide more output. I believe this is because the stdout is lost in the docker run of ct and not piped out to the console, hence you are left with only the error-code.
That's a weird one. I can reproduce it with the GitHub action. For some reason stderr seems to get lost. However, when I run ct
locally in Docker the same way the action does, I get a better error message as expected.
$ docker run --rm -ti -v $(pwd):/workdir --workdir /workdir --detach --network host --name ct quay.io/helmpack/chart-testing:v3.1.1 cat
a784466f568784ea490abe50b0294cf710ca761d988fcbfd575400928d3fde1c
$ docker exec -i ct ct lint --target-branch foo
Linting charts...
------------------------------------------------------------------------------------------------------------------------
No chart changes detected.
------------------------------------------------------------------------------------------------------------------------
Error: Error linting charts: Error identifying charts to process: Error running process: exit status 128
Error linting charts: Error identifying charts to process: Error running process: exit status 128
I can replicate both @ctron and @unguiculus errors, tried to solve the issue on github actions by debugging it locally, same error as mention above.
Update: Following this comment: https://github.com/helm/chart-testing-action/issues/25#issuecomment-687795744 I've managed to solve the issue by using configuration file, you can see the solution here: https://github.com/noygal/helm-github-pages-example/tree/main/.github
+1, I encountered the same error.
closing due inactivity and looks like there is an workaround
I created a new repository, and named the
master
branchmain
. Running thelint
command failed with a weird error message:I took me a while to figure out that the linter requires a default branch named
master
. I know it is possible to re-configure using:However, I think that:
Branch "master" not found