Skip to content

setup_starpls doesn't work with proxy servers and violates principle of reproducability #79

Open

Description

@NEOatNHNG

The setup_starpls downloads the binaries via curl in a genrule. This fails when using a proxy server because the genrule runs in a stripped environment (missing the http_proxy environment variables).

The better way would be to separate the download step from the genrule. E.g. by having a http_archive() in the MODULE.bazel or registry and then the genrule would just make it executable and provide it as a target in the module. That way also download will be reproducible because it needs to be downloaded (only) if the hash of the archive changes.

Activity

  1. NEOatNHNG commented on Oct 9, 2025

    @NEOatNHNG
    ContributorAuthor

    P.S.: As the starpls is a development tool but not necessary for the build, wouldn't it make more sense to add it to the devcontainer instead of installing it via bazel?

  2. NEOatNHNG commented on Oct 9, 2025

    @NEOatNHNG
    ContributorAuthor

    It seems that starpls is already part of the devcontainer. So probably it would make sense to remove the setup_starpls everywhere to clean it up.

  3. added a commit that references this issue on Jan 9, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions