Issue:
Your build can fail with one of the following error messages:
env var (KEY) value is too large (256.0009765625 KB), max allowed size: 256 KB
env var list is too large (256.0009765625 KB), max allowed size: 256 KB
Possible solutions:
If you receive the env var (KEY) value is too large
error message, you need to increase the size limit of a single environment variable and the environment variable list:
#!/usr/bin/env bash
set -ex
mkdir -p ~/.envman
echo -e '{"env_bytes_limit_in_kb": 257, "env_list_bytes_limit_in_kb": 257}' > ~/.envman/configs.json
If you receive the env var list is too large error
it's enough to increase the env var list size limit:
#!/usr/bin/env bash
set -ex
mkdir -p ~/.envman
echo -e '{"env_list_bytes_limit_in_kb": 257}' > ~/.envman/configs.json
In both cases, we've increased the size limit to 257KB from the default value of 256.