zendesk / helm-secrets

DEPRECATED A helm plugin that help manage secrets with Git workflow and store them anywhere
Apache License 2.0
1.16k stars 155 forks source link

Failed running helm secrets after installtion #165

Closed qballer closed 3 years ago

qballer commented 3 years ago

After running:

helm plugin install https://github.com/zendesk/helm-secrets 

With the following helm version:

> helm version 
version.BuildInfo{Version:"v3.3.4", GitCommit:"a61ce5633af99708171414353ed49547cf05013d", GitTreeState:"dirty", GoVersion:"go1.15.2"}
> sops --version    
sops 3.6.1 (latest)

I keep getting:

env: bash\r: No such file or directory
Error: plugin "secrets" exited with error

It doesn't matter which helm-secrets command I'm using (enc/dec), I keep getting this error.

qballer commented 3 years ago

The problem was that the repo contains CRLF line ending and in order to solve the issue I had to do the following:

This allowed the helm (underlying git layer) to convert the plugin line ending to the correct one for my machine.

I believe that by default this repo should be LF line ending and if the maintainers of this repo would like I'm willing to create a PR which fixes it (it's rather simple)