Debian Codegraph @

bazel/cipd_deps.bzl

raw
1 load("//bazel:cipd_install.bzl", "cipd_install")
2
3 def _cipd_deps_impl(_ctx):
4 # https://bazel.build/rules/lib/builtins/module_ctx
5
6 cipd_install(
7 name = "gn_linux_amd64",
8 build_file_content = """
9 exports_files(
10 ["gn"],
11 visibility = ["//visibility:public"]
12 )
13 """,
14 cipd_package = "gn/gn/linux-amd64",
15 # From https://chrome-infra-packages.appspot.com/p/gn/gn/linux-amd64/+/git_revision:1c4151ff5c1d6fbf7fa800b8d4bb34d3abc03a41
16 sha256 = "7195291488d08f3a10e85b85d8c4816e077015f1c5f196f770003a97aa42caf8",
17 tag = "git_revision:1c4151ff5c1d6fbf7fa800b8d4bb34d3abc03a41",
18 )
19
20 cipd_install(
21 name = "gn_mac_arm64",
22 build_file_content = """
23 exports_files(
24 ["gn"],
25 visibility = ["//visibility:public"]
26 )
27 """,
28 cipd_package = "gn/gn/mac-arm64",
29 # From https://chrome-infra-packages.appspot.com/p/gn/gn/mac-arm64/+/git_revision:1c4151ff5c1d6fbf7fa800b8d4bb34d3abc03a41
30 sha256 = "1123907ac3317530e9dd537d50cd83fd83e852aacc07d286f45753c8fc5287ed",
31 tag = "git_revision:1c4151ff5c1d6fbf7fa800b8d4bb34d3abc03a41",
32 )
33
34 cipd_install(
35 name = "gn_mac_amd64",
36 build_file_content = """
37 exports_files(
38 ["gn"],
39 visibility = ["//visibility:public"]
40 )
41 """,
42 cipd_package = "gn/gn/mac-amd64",
43 # From https://chrome-infra-packages.appspot.com/p/gn/gn/mac-amd64/+/git_revision:1c4151ff5c1d6fbf7fa800b8d4bb34d3abc03a41
44 sha256 = "ed96f7d2f49b83b016e4bdbed432e4734a5a133accb025d7c07685e01489ba93",
45 tag = "git_revision:1c4151ff5c1d6fbf7fa800b8d4bb34d3abc03a41",
46 )
47
48 cipd_install(
49 name = "git_linux_amd64",
50 build_file_content = """
51 filegroup(
52 name = "all_files",
53 # The exclude pattern prevents files with spaces in their names from tripping up Bazel.
54 srcs = glob(include=["**/*"], exclude=["**/* *"]),
55 visibility = ["//visibility:public"],
56 )
57 """,
58 cipd_package = "infra/3pp/tools/git/linux-amd64",
59 # Based on
60 # https://skia.googlesource.com/buildbot/+/f1d21dc58818cd6aba0a7822e59d37636aefe936/WORKSPACE#391.
61 #
62 # Note that the below "git config" commands do not affect the user's Git configuration. These
63 # settings are only visible to Bazel targets that depend on @git_linux_amd64//:all_files via
64 # the "data" attribute. The result of these commands can be examined as follows:
65 #
66 # $ cat $(bazel info output_base)/external/git_linux_amd64/etc/gitconfig
67 # [user]
68 # name = Bazel Test User
69 # email = [email protected]
70 postinstall_cmds_posix = [
71 "mkdir etc",
72 "bin/git config --system user.name \"Bazel Test User\"",
73 "bin/git config --system user.email \"[email protected]\"",
74 ],
75 # From https://chrome-infra-packages.appspot.com/p/infra/3pp/tools/git/linux-amd64/+/version:2.29.2.chromium.6
76 sha256 = "36cb96051827d6a3f6f59c5461996fe9490d997bcd2b351687d87dcd4a9b40fa",
77 tag = "version:2.29.2.chromium.6",
78 )
79
80 cipd_deps = module_extension(
81 implementation = _cipd_deps_impl,
82 )