Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make %USERPROFILE%\_netrc the default location for the netrc file on Windows #10867

Closed
plule-ansys opened this issue Feb 26, 2020 · 0 comments
Closed
Labels
area-Windows Windows-specific issues and feature requests P2 We'll consider working on this in future. (Assignee optional) team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website type: feature request

Comments

@plule-ansys
Copy link

plule-ansys commented Feb 26, 2020

Description of the problem / feature request:

Bazel has a default "netrc" file location under Linux and Mac OS, but not under Windows. This is identified as "TODO" in http.bzl

Feature requests: what underlying problem are you trying to solve with this feature?

Not having a default location for the netrc file on Windows makes it hard to use, especially as http_archive requires an absolute path ( #10689 ). The only supported way is to use a hard-coded path such as "C:/netrc".

Proposed Solution

Use "%USERPROFILE%/_netrc" as a default location. While GNU does not define any location for Windows, this location is de facto the one being used. This location is used by:

What operating system are you running Bazel on?

Windows 10

What's the output of bazel info release?

release 2.1.0

@aiuto aiuto added area-Windows Windows-specific issues and feature requests untriaged labels Feb 26, 2020
@meteorcloudy meteorcloudy added P2 We'll consider working on this in future. (Assignee optional) type: feature request and removed untriaged labels Feb 27, 2020
meteorcloudy added a commit to meteorcloudy/bazel that referenced this issue Mar 6, 2020
meteorcloudy added a commit to meteorcloudy/bazel that referenced this issue Mar 10, 2020
@philwo philwo added the team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website label Jun 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Windows Windows-specific issues and feature requests P2 We'll consider working on this in future. (Assignee optional) team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website type: feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants