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
make update-all & ensure bazel-only targets are runnable
this allows us to maintain the bazel build files until they're removed,
but tries to avoid accidentally encouraging their use
`make update-all` implementes a non-bazel version of
`hack/update-all.sh`, with `hack/update-all.sh` now calling make but
also doing the bazel stuff it used to.
Signed-off-by: Ashley Davis <[email protected]>
Copy file name to clipboardExpand all lines: hack/verify-bazel.sh
+8-2
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
#!/usr/bin/env bash
2
-
# Copyright 2020 The cert-manager Authors.
2
+
3
+
# Copyright 2022 The cert-manager Authors.
3
4
#
4
5
# Licensed under the Apache License, Version 2.0 (the "License");
5
6
# you may not use this file except in compliance with the License.
@@ -13,14 +14,18 @@
13
14
# See the License for the specific language governing permissions and
14
15
# limitations under the License.
15
16
17
+
# NB: This script requires bazel, and is no longer supported since we no longer support bazel
18
+
# It's preserved for now but might be removed in the future
19
+
16
20
set -o errexit
17
21
set -o nounset
18
22
set -o pipefail
19
23
20
24
if [[ -n"${TEST_WORKSPACE:-}" ]];then# Running inside bazel
21
25
echo"Validating bazel rules...">&2
22
26
elif!command -v bazel &> /dev/null;then
23
-
echo"Install bazel at https://bazel.build">&2
27
+
echo"This script is preserved for legacy reasons and requires bazel. You shouldn't need to run this as part of your normal development workflow">&2
28
+
echo"If you need to run this script, install bazel from https://bazel.build">&2
24
29
exit 1
25
30
else
26
31
(
@@ -44,6 +49,7 @@ export GO111MODULE=on
44
49
# get a confusing error message, but we fail fast and it is clear that
45
50
# something is wrong:
46
51
# gazelle: finding module path for import github.com/cert-manager/cert-manager/test/unit/gen: exit status 1: build cache is required, but could not be located: GOCACHE is not defined and $HOME is not defined
0 commit comments