Skip to content

Repository rules should not re-fetch when .netrc changes #22118

@mortenmj

Description

@mortenmj

Description of the feature request:

The http_archive/file/jar rules read the user's .netrc file in order to authenticate, as of 7.1.0. Presumably as a consequence of this, the netrc file appears in external repo marker files. This means that changes to the netrc file cause re-fetching of these dependencies.

Which category does this issue belong to?

External Dependency

What underlying problem are you trying to solve with this feature?

Changes to .netrc should not cause re-fetching of external dependencies that have been successfully fetched.

Which operating system are you running Bazel on?

Linux

What is the output of bazel info release?

release 7.1.1

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

No response

What's the output of git remote get-url origin; git rev-parse HEAD ?

No response

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

Metadata

Metadata

Assignees

Labels

P1I'll work on this now. (Assignee required)team-ExternalDepsExternal dependency handling, remote repositiories, WORKSPACE file.type: feature request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions