Wrong escaping of appVersion if it is a number in scientific notation.
helm repo add..., e.g. for our GitLab pipeline helm repo add --force-update --username gitlab-ci-token --password ${CI_JOB_TOKEN} ${CI_PROJECT_NAME} ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/stable, results in:
Error: looks like "https://gitlab.com/api/v4/projects/12345678/packages/helm/stable" is not a valid chart repository or cannot be reached: error unmarshaling JSON: while decoding JSON: json: cannot unmarshal number into Go struct field ChartVersion.entries.appVersion of type string
index.yaml from the GitLab Helm registry pushed with the ChartMuseum helm-push plugin and reduced to the problematic entry:
Wrong escaping of
appVersion
if it is a number in scientific notation.helm repo add...
, e.g. for our GitLab pipelinehelm repo add --force-update --username gitlab-ci-token --password ${CI_JOB_TOKEN} ${CI_PROJECT_NAME} ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/stable
, results in:index.yaml from the GitLab Helm registry pushed with the ChartMuseum helm-push plugin and reduced to the problematic entry:
Currently, we are using Helm 3.13.0.
I already reported this as https://github.com/helm/helm/issues/12236 but it seems to be a ChartMuseum problem.
This problem already happened some years ago as https://github.com/chartmuseum/helm-push/issues/40.