Skip to content

Go backend impacts all rules & incurs meaningful slowdowns #20340

Open
@kuza55

Description

@kuza55

Describe the bug
The go backend seems to not have any caching of import information, i.e. no concept of lockfiles, and additionally seems to need to figure out the imports for go targets, even when they are not being referenced in a rule.

Additionally, adding any go rules necessitates the installation of a go compiler when doing anything with pants.

The most noticeable issue with this is that every time pants starts, it spends ~30 seconds downloading imports for the small go program we have. Presumably this slowdown will increase as the size of our go codebase increases.

Pants version
2.17.0

OS
Linux

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