<#20651 Backport #20587 to 2.19.x to fix `Exec for...
# github-notifications
c
#20651 Backport #20587 to 2.19.x to fix `Exec format error` when running Pants on Linux Issue created by yjabri Describe the bug When running the command
pants
several of my coworkers have ran into
Exec format error
. This is because the shebang in the
nce/path/.../bin/pants
is longer than the 128 character limit imposed by linux and gets cutoff. The 2.1.154 release of Pex includes a work around for this. However Pants 2.19.x currently uses v2.1.148. During the
Pants Build Pex
step of the release, Pants packages itself as a pex, however it uses pex v2.1.148. This produces potentially broken Pants Pexs on linux if your home directory is sufficiently long. I believe if we cherry picked the work done in #20587 it would solve the problem. Pants version 2.19 OS Both Additional info pantsbuild/pants