Skip to content

Backport #20587 to 2.19.x to fix Exec format error when running Pants on Linux #20651

Closed
@yjabri

Description

@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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions