forked from bazel-contrib/rules_go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add private git repository documentation (bazel-contrib#1287)
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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", | ||
) |