helm/pkg
Cory Snider 79df3926f6 fix(engine): parse fail messages with newlines
The templating engine handles errors originating from the `required` and
`fail` template functions specially, cleaning up the error messages to
be more presentable to users. Go's text/template package unfortunately
does not make this straightforward to implement. Despite
template.ExecError implementing Unwrap, the error value returned from
the template function cannot be retrieved using errors.As. The wrapped
error in ExecError is a pre-formatted error string with the template
function's error string interpolated in with the original error value
erased. Helm works around this limitation by delimiting the
template-supplied message and extracting the message out of the
ExecError string with a regex.

Fix the parsing of `required` and `fail` error messages containing
newlines by setting the regex flag to make `.` match newline characters.

Signed-off-by: Cory Snider <csnider@mirantis.com>
2021-08-10 12:38:43 -04:00
..
action Migrate to oras-go library 2021-07-19 11:52:34 +02:00
chart fix(*): Validate metadata semver and printable characters 2021-02-04 12:52:24 -08:00
chartutil Fix coalesce globals to prevent subchart globals to leak upstream 2021-05-31 00:19:19 +02:00
cli feat(comp): Add descriptions for output format 2021-02-24 11:43:45 -05:00
downloader refactor: use os instead of ioutil's ReadDir 2021-07-08 21:28:42 +08:00
engine fix(engine): parse fail messages with newlines 2021-08-10 12:38:43 -04:00
gates pkg/gates: add unit test for String 2020-02-17 13:48:12 +08:00
getter refactor(getter): refine http GET request 2021-06-25 13:18:48 +08:00
helmpath Fixing argument to be lower case 2020-05-05 10:27:47 -04:00
kube Merge pull request #9870 from mattfarina/fix-9859 2021-07-06 15:41:14 -04:00
lint Merge pull request #9066 from scaat/fix-specification 2021-06-02 11:55:53 +01:00
plugin Merge pull request #9066 from scaat/fix-specification 2021-06-02 11:55:53 +01:00
postrender chore: Spelling (#9410) 2021-03-15 21:11:57 -04:00
provenance improved the error message for failed package signing (#6948) 2019-12-06 09:14:39 -07:00
release chore: Spelling (#9410) 2021-03-15 21:11:57 -04:00
releaseutil add kind_sorter support for SecretList 2020-05-21 18:23:00 +08:00
repo Migrate to oras-go library 2021-07-19 11:52:34 +02:00
storage fix(typo): fix typo of storage doc 2021-07-22 23:32:06 +08:00
strvals fix conflict 2020-07-01 21:38:44 +08:00
time remove redudant time func 2020-09-23 23:32:56 +02:00