Reputation: 574
I would like to know is it possible to use "git_repository" to import a private repository in a bazel project? If yes how can I bypass authorization? If no is there any alternative?
Upvotes: 2
Views: 1492
Reputation: 13473
The Starlark version of git_repository
uses the local system git
.
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
If your local system git
credentials are set up properly, it should just work. Do you have a particular error or reproducible example?
Upvotes: 2