代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/Sourcegraph 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
"Helper for stamping version control info into the tag"
load("@aspect_bazel_lib//lib:jq.bzl", "jq")
load("@bazel_skylib//lib:types.bzl", "types")
def stamp_tags(name, remote_tags, **kwargs):
"""Wrapper macro around the [jq](https://docs.aspect.build/rules/aspect_bazel_lib/docs/jq) rule.
Produces a text file that can be used with the `remote_tags` attribute of [`oci_push`](#oci_push).
Each entry in `remote_tags` is typically either a constant like `my-repo:latest`, or can contain a stamp expression.
The latter can use any key from `bazel-out/stable-status.txt` or `bazel-out/volatile-status.txt`.
See https://docs.aspect.build/rules/aspect_bazel_lib/docs/stamping/ for details.
The jq `//` default operator is useful for returning an alternative value for unstamped builds.
For example, if you use the expression `($stamp.BUILD_EMBED_LABEL // "0.0.0")`, this resolves to
"0.0.0" if stamping is not enabled. When built with `--stamp --embed_label=1.2.3` it will
resolve to `1.2.3`.
Args:
name: name of the resulting jq target.
remote_tags: list of jq expressions which result in a string value, see docs above
**kwargs: additional named parameters to the jq rule.
"""
if not types.is_list(remote_tags):
fail("remote_tags should be a list")
_maybe_quote = lambda x: x if "\"" in x else "\"{}\"".format(x)
jq(
name = name,
srcs = [],
out = "_{}.tags.txt".format(name),
args = ["--raw-output"],
filter = "|".join([
"$ARGS.named.STAMP as $stamp",
",".join([_maybe_quote(t) for t in remote_tags]),
]),
**kwargs
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。