Skip to content

Commit

Permalink
Add private git repository documentation (bazel-contrib#1287)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianthehat authored Jan 29, 2018
1 parent 5e7adfc commit 535e17b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions go/workspace.rst
Original file line number Diff line number Diff line change
Expand Up @@ -235,3 +235,18 @@ repository is renamed.
strip_prefix = "tools-663269851cdddc898f963782f74ea574bcd5c814",
type = "zip",
)
The following fetches the same package, but using git without import redirection.
This is also the same method you would use for private git repositories.

.. code:: bzl
load("@io_bazel_rules_go//go:def.bzl", "go_repository")
go_repository(
name = "org_golang_x_tools",
importpath = "golang.org/x/tools",
remote = "[email protected]:golang/tools.git",
vcs = "git",
commit = "663269851cdddc898f963782f74ea574bcd5c814",
)

0 comments on commit 535e17b

Please sign in to comment.