You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: moduleinfo/bazel_tools-git.bzl.moduleinfo
+62Lines changed: 62 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -0,0 +1,62 @@
1
+
2
+
�
3
+
git_repository�Clone an external git repository.
4
+
5
+
Clones a Git repository, checks out the specified tag, or commit, and
6
+
makes its targets available for binding. Also determine the id of the
7
+
commit actually checked out and its date, and return a dict with parameters
8
+
that provide a reproducible version of this rule (which a tag not necessarily
9
+
is).
10
+
.
11
+
name"A unique name for this repository. z
12
+
branchjbranch in the remote repository to checked out. Precisely one of branch, tag, or commit must be specified.2""m
13
+
commit]specific commit to be checked out. Precisely one of branch, tag, or commit must be specified.2""J
14
+
init_submodules.Whether to clone submodules in the repository.2False�
15
+
16
+
patch_args�The arguments given to the patch tool. Defaults to -p0, however -p1 will usually be needed for patches generated by git. If multiple -p arguments are specified, the last one will take effect.If arguments other than -p are specified, Bazel will fall back to use patch command line tool instead of the Bazel-native patch implementation. When falling back to patch command line tool and patch_tool attribute is not specified, `patch` will be used.2["-p0"]e
17
+
18
+
patch_cmdsQSequence of Bash commands to be applied on Linux/Macos after patches are applied.2[]�
19
+
patch_cmds_win�Sequence of Powershell commands to be applied on Windows after patches are applied. If this attribute is not set, patch_cmds will be executed on Windows, which requires Bash binary to exist.2[]�
20
+
21
+
patch_tool�The patch(1) utility to use. If this is specified, Bazel will use the specifed patch tool instead of the Bazel-native patch implementation.2""�
22
+
patches�A list of files that are to be applied as patches after extracting the archive. By default, it uses the Bazel-native patch implementation which doesn't support fuzz match and binary patch, but Bazel will fall back to use patch command line tool if `patch_tool` attribute is specified or there are arguments other than `-p` in `patch_args` attribute.2[]2
23
+
remote$The URI of the remote Git repository �
24
+
repo_mapping�A dictionary from local repository name to global repository name. This allows controls over workspace dependency resolution for dependencies of this repository.<p>For example, an entry `"@foo": "@bar"` declares that, for any time this repository depends on `@foo` (such as a dependency on `@foo//some:target`, it should actually resolve that dependency within globally-declared `@bar` (`@bar//some:target`).
25
+
�
26
+
shallow_since�an optional date, not after the specified commit; the argument is not allowed if a tag is specified (which allows cloning with depth 1). Setting such a date close to the specified commit allows for a more shallow clone of the repository, saving bandwidth and wall-clock time.2""K
27
+
strip_prefix5A directory prefix to strip from the extracted files.2""t
28
+
taggtag in the remote repository to checked out. Precisely one of branch, tag, or commit must be specified.2""
29
+
verbose2False
30
+
�
31
+
new_git_repository�Clone an external git repository.
32
+
33
+
Clones a Git repository, checks out the specified tag, or commit, and
34
+
makes its targets available for binding. Also determine the id of the
35
+
commit actually checked out and its date, and return a dict with parameters
36
+
that provide a reproducible version of this rule (which a tag not necessarily
37
+
is).
38
+
.
39
+
name"A unique name for this repository. z
40
+
branchjbranch in the remote repository to checked out. Precisely one of branch, tag, or commit must be specified.2""�
41
+
42
+
build_file�The file to use as the BUILD file for this repository.This attribute is an absolute label (use '@//' for the main repo). The file does not need to be named BUILD, but can be (something like BUILD.new-repo-name may work well for distinguishing it from the repository's actual BUILD files. Either build_file or build_file_content must be specified.2None�
43
+
build_file_contentnThe content for the BUILD file for this repository. Either build_file or build_file_content must be specified.2""m
44
+
commit]specific commit to be checked out. Precisely one of branch, tag, or commit must be specified.2""J
45
+
init_submodules.Whether to clone submodules in the repository.2False�
46
+
47
+
patch_args�The arguments given to the patch tool. Defaults to -p0, however -p1 will usually be needed for patches generated by git. If multiple -p arguments are specified, the last one will take effect.If arguments other than -p are specified, Bazel will fall back to use patch command line tool instead of the Bazel-native patch implementation. When falling back to patch command line tool and patch_tool attribute is not specified, `patch` will be used.2["-p0"]e
48
+
49
+
patch_cmdsQSequence of Bash commands to be applied on Linux/Macos after patches are applied.2[]�
50
+
patch_cmds_win�Sequence of Powershell commands to be applied on Windows after patches are applied. If this attribute is not set, patch_cmds will be executed on Windows, which requires Bash binary to exist.2[]�
51
+
52
+
patch_tool�The patch(1) utility to use. If this is specified, Bazel will use the specifed patch tool instead of the Bazel-native patch implementation.2""�
53
+
patches�A list of files that are to be applied as patches after extracting the archive. By default, it uses the Bazel-native patch implementation which doesn't support fuzz match and binary patch, but Bazel will fall back to use patch command line tool if `patch_tool` attribute is specified or there are arguments other than `-p` in `patch_args` attribute.2[]2
54
+
remote$The URI of the remote Git repository �
55
+
repo_mapping�A dictionary from local repository name to global repository name. This allows controls over workspace dependency resolution for dependencies of this repository.<p>For example, an entry `"@foo": "@bar"` declares that, for any time this repository depends on `@foo` (such as a dependency on `@foo//some:target`, it should actually resolve that dependency within globally-declared `@bar` (`@bar//some:target`).
56
+
�
57
+
shallow_since�an optional date, not after the specified commit; the argument is not allowed if a tag is specified (which allows cloning with depth 1). Setting such a date close to the specified commit allows for a more shallow clone of the repository, saving bandwidth and wall-clock time.2""K
58
+
strip_prefix5A directory prefix to strip from the extracted files.2""t
59
+
taggtag in the remote repository to checked out. Precisely one of branch, tag, or commit must be specified.2""
60
+
verbose2False�
61
+
workspace_file�The file to use as the `WORKSPACE` file for this repository. Either `workspace_file` or `workspace_file_content` can be specified, or neither, but not both.2None�
62
+
workspace_file_content�The content for the WORKSPACE file for this repository. Either `workspace_file` or `workspace_file_content` can be specified, or neither, but not both.2""*,Rules for cloning external git repositories.
0 commit comments