mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Merge pull request #79502 from BenTheElder/silent-errors
suppress libseccomp pkg-config errors
This commit is contained in:
commit
7334492260
@ -62,11 +62,15 @@ for repo in "${staging_repos[@]}"; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Run gazelle to update Go rules in BUILD files.
|
# Run gazelle to update Go rules in BUILD files.
|
||||||
|
# filter out known pkg-config error (see buildozer workaround below)
|
||||||
|
# NOTE: the `|| exit "${PIPESTATUS[0]}"` is to ignore grep errors
|
||||||
|
# while preserving the exit code of gazelle
|
||||||
gazelle fix \
|
gazelle fix \
|
||||||
-external=vendored \
|
-external=vendored \
|
||||||
-mode=fix \
|
-mode=fix \
|
||||||
-repo_root "${KUBE_ROOT}" \
|
-repo_root "${KUBE_ROOT}" \
|
||||||
"${KUBE_ROOT}"
|
"${KUBE_ROOT}" \
|
||||||
|
2>&1 | grep -Ev "vendor/github.com/seccomp/libseccomp-golang/seccomp(_internal)?.go: pkg-config not supported: #cgo pkg-config: libseccomp" || (exit "${PIPESTATUS[0]}")
|
||||||
|
|
||||||
# Run kazel to update the pkg-srcs and all-srcs rules as well as handle
|
# Run kazel to update the pkg-srcs and all-srcs rules as well as handle
|
||||||
# Kubernetes code generators.
|
# Kubernetes code generators.
|
||||||
|
Loading…
Reference in New Issue
Block a user