Skip to content

Unable to compile standalone gazelle binary with rules_python plugin #1455

@Whoaa512

Description

@Whoaa512

Context:
I work within a repo where we require building a static gazelle binary per platform that is checked into git LFS. The precompiled binaries are then used for pre-commit hooks and can be run in CI environments without the need to build from source with bazel.

Issue:
I'm having issues compiling gazelle with the rules_python package because it makes use of runfiles.

The runfiles however is not portable and short of patching the parser.go I don't see a clear path to compiling this gazelle plugin to be a portable go binary.

Is this intentional or could there be an alternative that allows for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions