bitrise-io / envman

Environment variable manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

envman fails when git commit message is too long

tsonev7 opened this issue · comments

When this function is executed, an error is thrown if the git commit message is too long.

Is there a restriction for the max length of environment variables ?

Yes there is:

defaultEnvBytesLimitInKB     = 20

An other way to get the commit message:

git log -1 --pretty=%B

My concern is that bitrise will fail if the commit message is longer than 20k. Is this restriction correct ?

Hi @tsonev7!

Our tooling team is currently discussing how to tackle this problem, we'll make sure to let you know in this thread!

Any updates how how to deal with this? Are we able to trim the message or sometihng?

I just checked in with the devs to see if we have a workaround for this.

Information about increasing the size limit of environment variables can be found here:
https://devcenter.bitrise.io/tips-and-tricks/increasing-the-size-limit-of-env-vars/