bazelbuild / bazelbuild/bazel

Cannot pass a netrc from current repo

Open
#10,689 5 comments 6 reactions 0 assignees View on GitHub
P3 team-ExternalDeps type: feature request
Dominant language
Java
Stars
25.8k
Forks
4.6k
Avg merge
2d 20h
Merged PRs (30d)
72

Description

### Description of the problem / feature request:
Currently, it is not possible to use a file from the current repository as netrc file for http rules, unless the full path to the repo is known in advance.

### Proposed solution
Use `label` as type for the `netrc` attribute in `http_file` and `http_archive` rules. Current full paths will have to be exposed through `new_local_repository` workspace targets. This might require an incompatible change flag.

### What's the output of `bazel info release`?

release 2.0.0

Contributor guide

Open the contributing guide

Research direction

Start by tracing the netrc attributes on the http_file and http_archive rules, then examine how current full paths are exposed through new_local_repository workspace targets. Check the compatibility implications of changing netrc to a label, including whether an incompatible change flag is required. Done means repository-local netrc files can be passed without knowing the repository's full path.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.