Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
27 changes: 27 additions & 0 deletions LICENSES/github.com/google/go-cmp/cmp/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Copyright (c) 2017 The Go Authors. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 changes: 0 additions & 27 deletions LICENSES/github.com/hashicorp/go-reap/reap_stub_test.go

This file was deleted.

129 changes: 0 additions & 129 deletions LICENSES/github.com/hashicorp/go-reap/reap_unix_test.go

This file was deleted.

3 changes: 2 additions & 1 deletion hack/third_party/kubernetes/verify-shellcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ if [[ "$#" == 0 ]]; then
-not \( \
-path './_*' -o \
-path './.git*' -o \
\( -path '*/third_party/*' \) \
-path '*/vendor/*' -o \
-path '*/third_party/*' \
\))
fi

Expand Down
4 changes: 3 additions & 1 deletion hack/update-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ set -o errexit -o nounset -o pipefail
ROOT="$(git rev-parse --show-toplevel)"
cd "${ROOT}"

export LC_ALL=C # for sorting to be consistent across locales

# shellcheck disable=2044 # for-loop over find output is intentional
for F in $(find ./hack/update -name '*.sh'); do
for F in $(find ./hack/update -name '*.sh' | sort); do
echo "Running ${F}"
"${F}" "$@"
done
3 changes: 2 additions & 1 deletion hack/verify/go-mod-tidy.sh → hack/update/go-modules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ set -o errexit -o nounset -o pipefail
ROOT="$(git rev-parse --show-toplevel)"
cd "${ROOT}"

./hack/third_party/kubernetes/verify-generated.sh go-mod-tidy "$@"
go mod vendor
go mod tidy
18 changes: 12 additions & 6 deletions hack/update/gofmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,21 @@ ROOT="$(git rev-parse --show-toplevel)"
cd "${ROOT}"

# Find all top-level directories containing Go files, and run gofmt on them.
# shellcheck disable=SC2207 # read array
# shellcheck disable=SC2207 # reading array
dirs=(
$(git ls-files -cmo --exclude-standard ':(glob)**/*.go' \
`# Omit LICENSES/, which can contain bundled source code. ` \
| grep -v '^LICENSES' \
| cut -f1 -d/ \
$(git ls-files \
-cmo \
--exclude-standard \
-- \
':(glob)**/*.go' \
':!:vendor/*' \
':!:**/vendor/*' \
':!:LICENSES/*' \
| while read -r FILE; do dirname "${FILE}"; done \
| sort \
| uniq)
)

for dir in "${dirs[@]}"; do
gofmt -s -w "${dir}"
gofmt -s -w "${dir}"
done
12 changes: 9 additions & 3 deletions hack/update/licenses.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,15 @@ for target in "${targets[@]}"; do
tmp_out="$(mktemp -d -t "update-licenses-out.XXXXXX")"

GOOS="${target_os}" \
GOARCH="${target_arch}" \
CGO_ENABLED=1 \
"${GO_LICENSES_BIN}" save ./... --force --save_path="${tmp_out}" > "${tmpfile}" 2>&1 || {
GOARCH="${target_arch}" \
GOROOT=$(go env GOROOT) \
CGO_ENABLED=1 \
"${GO_LICENSES_BIN}" save ./... \
--include_tests \
--force \
--ignore=./vendor \
--save_path="${tmp_out}" > "${tmpfile}" 2>&1 || \
{
echo "Failed for ${target_os}/${target_arch}:" >&2
cat "${tmpfile}"
rm -rf "${tmp_out}"
Expand Down
4 changes: 4 additions & 0 deletions hack/util/verify-boilerplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ def main():
if "third_party" in filepath:
continue

# exclude vendor directories
if "vendor" in filepath:
continue

# exclude top-level LICENSES directory
if filepath.startswith("LICENSES/"):
continue
Expand Down
4 changes: 3 additions & 1 deletion hack/verify-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ set -o errexit -o nounset -o pipefail
ROOT="$(git rev-parse --show-toplevel)"
cd "${ROOT}"

export LC_ALL=C # for sorting to be consistent across locales

# shellcheck disable=2044 # for-loop over find output is intentional
for F in $(find ./hack/verify -name '*.sh'); do
for F in $(find ./hack/verify -name '*.sh' | sort); do
echo "Running ${F}"
"${F}" "$@"
done
9 changes: 1 addition & 8 deletions hack/update/go-mod-tidy.sh → hack/verify/go-modules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,4 @@ set -o errexit -o nounset -o pipefail
ROOT="$(git rev-parse --show-toplevel)"
cd "${ROOT}"

go mod tidy

# Tidy all isolated tool modules under hack/tools/
for D in "${ROOT}/hack/tools"/*; do
if [ -d "${D}" ] && [ -f "${D}/go.mod" ]; then
(cd "${D}" && go mod tidy)
fi
done
./hack/third_party/kubernetes/verify-generated.sh go-modules "$@"
2 changes: 1 addition & 1 deletion hack/verify/golangci-lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ cd "${ROOT}"
# macOS and golangci-lint's typecheck fail-stop suppresses all other
# findings in the affected files.
BIN="$("${ROOT}"/hack/run-tool.sh --print-bin-path golangci-lint)"
exec env GOOS=linux "${BIN}" run ./...
exec env GOOS=linux "${BIN}" run ./... | { grep -v '^0 issues.$' || true; }
2 changes: 2 additions & 0 deletions vendor/cel.dev/expr/.bazelversion
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
7.3.2
# Keep this pinned version in parity with cel-go
2 changes: 2 additions & 0 deletions vendor/cel.dev/expr/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.pb.go linguist-generated=true
*.pb.go -diff -merge
2 changes: 2 additions & 0 deletions vendor/cel.dev/expr/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bazel-*
MODULE.bazel.lock
33 changes: 33 additions & 0 deletions vendor/cel.dev/expr/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")

package(default_visibility = ["//visibility:public"])

licenses(["notice"]) # Apache 2.0

go_library(
name = "expr",
srcs = [
"checked.pb.go",
"eval.pb.go",
"explain.pb.go",
"syntax.pb.go",
"value.pb.go",
],
importpath = "cel.dev/expr",
visibility = ["//visibility:public"],
deps = [
"@org_golang_google_protobuf//reflect/protoreflect",
"@org_golang_google_protobuf//runtime/protoimpl",
"@org_golang_google_protobuf//types/known/anypb",
"@org_golang_google_protobuf//types/known/durationpb",
"@org_golang_google_protobuf//types/known/emptypb",
"@org_golang_google_protobuf//types/known/structpb",
"@org_golang_google_protobuf//types/known/timestamppb",
],
)

alias(
name = "go_default_library",
actual = ":expr",
visibility = ["//visibility:public"],
)
25 changes: 25 additions & 0 deletions vendor/cel.dev/expr/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Contributor Code of Conduct
## Version 0.1.1 (adapted from 0.3b-angular)

As contributors and maintainers of the Common Expression Language
(CEL) project, we pledge to respect everyone who contributes by
posting issues, updating documentation, submitting pull requests,
providing feedback in comments, and any other activities.

Communication through any of CEL's channels (GitHub, Gitter, IRC,
mailing lists, Google+, Twitter, etc.) must be constructive and never
resort to personal attacks, trolling, public or private harassment,
insults, or other unprofessional conduct.

We promise to extend courtesy and respect to everyone involved in this
project regardless of gender, gender identity, sexual orientation,
disability, age, race, ethnicity, religion, or level of experience. We
expect anyone contributing to the project to do the same.

If any member of the community violates this code of conduct, the
maintainers of the CEL project may take action, removing issues,
comments, and PRs or blocking accounts as deemed appropriate.

If you are subject to or witness unacceptable behavior, or have any
other concerns, please email us at
[cel-conduct@google.com](mailto:cel-conduct@google.com).
Loading
Loading