You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to bazel-...@googlegroups.com
Hi,
I know it is explicitly stated in the documentation that the remote attribute of thenew_git_repository does not suppoer authentication, but I was wondering if there is any upcoming support / slated support for authentication for it. I have a private git repo, and I have my SSH keys configured for cloning which work if I just git clone myself, but Bazel fails.
- Pranav S.
Nelson Elhage
unread,
Nov 11, 2016, 2:53:57 PM11/11/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Pranav Sathyanarayanan, bazel-discuss
Hi Pranav,
They're currently undocumented and last I checked we were waiting on
better test harnesses for repository rules to make them public-facing,
but I landed a change a while back to support `new_git_repository`
rules using the git command itself, which lets you support whatever
authentication mechanisms you do already:
https://bazel-review.googlesource.com/#/c/3982/
You should be able to get at them via something like
^ This is already a rule it seems, this is what I tried to utilize to pull a private repository but it failed even though I had my git client configured with SSH keys.
Nelson Elhage
unread,
Nov 11, 2016, 4:07:51 PM11/11/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Pranav Sathyanarayanan, bazel-discuss
The built-in rule uses a JGit-based implementation and doesn't support
authentication. If you pull in the `git`-binary-based rules from the
location I mentioned, you should get a version that shells out to git
and supports everything the real git client does.
- Nelson
On Fri, Nov 11, 2016 at 4:05 PM, 'Pranav Sathyanarayanan' via