Skip to content

Conversation

@noahkawasakigoogle
Copy link
Contributor

@noahkawasakigoogle noahkawasakigoogle commented Mar 27, 2025

Add NETRC read support for rb_bundle_fetch to support authentication to private registries. Fixes #174

Taken from: bazelbuild/rules_rust#2623
Bazel 7.1.0 support for NETRC in utils: bazelbuild/bazel#20915

Example usage:

WORKSPACE

rb_bundle_fetch(
        name = "bundle",
        srcs = [
          ...
        ],
        gemfile = "//:Gemfile",
        gemfile_lock = "//:Gemfile.lock",
        env = {
            "NETRC": "~/.netrc"
        },
    )

… to private rubygems registries

    Taken from: bazelbuild/rules_rust#2623

    Bazel 7.1.0 support for NETRC in utils: bazelbuild/bazel#20915
@p0deje p0deje merged commit fd353aa into bazel-contrib:main May 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add netrc read support to rb_bundle_fetch rule _download_gem

2 participants