bazelbuild/bazel

Document how to work with private git repositories

Open

#11,523 创建于 2020年5月30日

在 GitHub 查看
 (5 评论) (11 反应) (0 负责人)Java (4,465 fork)batch import
P3help wantedteam-Documentationteam-ExternalDepstype: documentation (cleanup)

仓库指标

Star
 (25,384 star)
PR 合并指标
 (平均合并 22天 20小时) (30 天内合并 77 个 PR)

描述

Description of the problem / feature request:

It's unclear how to use a private git repository with bazel. Please consider documenting how to set this up more prominently in the repository documentation.

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

Interactive commands tend to fail because the git + ssh handshake may need the user to enter a password to unlock the ssh private key.

What operating system are you running Bazel on?

Ubuntu 20.04

What's the output of bazel info release?

release 3.2.0

Have you found anything relevant by searching the web?

Example error message

ERROR: /home/red/git/blah/BUILD.bazel:3:11: //cmd/downloader:go_default_library depends on @private_thing//:go_default_library in repository @private_thing which failed to fetch. no such package '@private_thing//': failed to fetch private_thing: # cd .; git clone git@github.com:gonzojive/blah.git /home/red/.cache/bazel/_bazel_red/11b28b8a9f8bcb1f153ff86ce3120090/external/private_thing

贡献者指南