Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit df1d66e

Browse files
committed
Set locale to fix yamlllint
Attempting to fix; ``` 21:16:00 Traceback (most recent call last): 21:16:00 File "/usr/local/bin/yamllint", line 11, in <module> 21:16:00 sys.exit(run()) 21:16:00 File "/usr/local/lib/python3.5/dist-packages/yamllint/cli.py", line 170, in run 21:16:00 problems = linter.run(f, conf, filepath) 21:16:00 File "/usr/local/lib/python3.5/dist-packages/yamllint/linter.py", line 233, in run 21:16:00 content = input.read() 21:16:00 File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode 21:16:00 return codecs.ascii_decode(input, self.errors)[0] 21:16:00 UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 123522: ordinal not in range(128) 21:16:00 Build step 'Execute shell' marked build as failure ``` Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit b5e5cac) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 0873c3b commit df1d66e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hack/validate/swagger

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ files=( $(validate_diff --diff-filter=ACMR --name-only -- 'api/swagger.yaml' ||
88
unset IFS
99

1010
if [ ${#files[@]} -gt 0 ]; then
11-
yamllint -c ${SCRIPTDIR}/.swagger-yamllint api/swagger.yaml
11+
LANG=C.UTF-8 yamllint -c ${SCRIPTDIR}/.swagger-yamllint api/swagger.yaml
1212
swagger validate api/swagger.yaml
1313
fi

0 commit comments

Comments
 (0)