Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Merge self-upgrade-main into main #112

Merged
merged 1 commit into from
Apr 26, 2024
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ FORCE:

noop: # do nothing

# Set empty value for MAKECMDGOALS to prevent the "warning: undefined variable 'MAKECMDGOALS'"
# warning from happening when running make without arguments
MAKECMDGOALS ?=

##################################
# Host OS and architecture setup #
##################################
Expand Down
24 changes: 12 additions & 12 deletions klone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,60 +9,60 @@ targets:
- folder_name: api-docs
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: ad721163bbe8d8d755d54c88a2b2475aeb7c79de
repo_hash: 9b0502fdd5860b18fd6a9ddf86f148604a214fe4
repo_path: modules/api-docs
- folder_name: boilerplate
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: ad721163bbe8d8d755d54c88a2b2475aeb7c79de
repo_hash: 9b0502fdd5860b18fd6a9ddf86f148604a214fe4
repo_path: modules/boilerplate
- folder_name: cert-manager
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: ad721163bbe8d8d755d54c88a2b2475aeb7c79de
repo_hash: 9b0502fdd5860b18fd6a9ddf86f148604a214fe4
repo_path: modules/cert-manager
- folder_name: controller-gen
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: ad721163bbe8d8d755d54c88a2b2475aeb7c79de
repo_hash: 9b0502fdd5860b18fd6a9ddf86f148604a214fe4
repo_path: modules/controller-gen
- folder_name: generate-verify
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: ad721163bbe8d8d755d54c88a2b2475aeb7c79de
repo_hash: 9b0502fdd5860b18fd6a9ddf86f148604a214fe4
repo_path: modules/generate-verify
- folder_name: go
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: ad721163bbe8d8d755d54c88a2b2475aeb7c79de
repo_hash: 9b0502fdd5860b18fd6a9ddf86f148604a214fe4
repo_path: modules/go
- folder_name: help
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: ad721163bbe8d8d755d54c88a2b2475aeb7c79de
repo_hash: 9b0502fdd5860b18fd6a9ddf86f148604a214fe4
repo_path: modules/help
- folder_name: kind
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: ad721163bbe8d8d755d54c88a2b2475aeb7c79de
repo_hash: 9b0502fdd5860b18fd6a9ddf86f148604a214fe4
repo_path: modules/kind
- folder_name: klone
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: ad721163bbe8d8d755d54c88a2b2475aeb7c79de
repo_hash: 9b0502fdd5860b18fd6a9ddf86f148604a214fe4
repo_path: modules/klone
- folder_name: oci-build
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: ad721163bbe8d8d755d54c88a2b2475aeb7c79de
repo_hash: 9b0502fdd5860b18fd6a9ddf86f148604a214fe4
repo_path: modules/oci-build
- folder_name: repository-base
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: ad721163bbe8d8d755d54c88a2b2475aeb7c79de
repo_hash: 9b0502fdd5860b18fd6a9ddf86f148604a214fe4
repo_path: modules/repository-base
- folder_name: tools
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: ad721163bbe8d8d755d54c88a2b2475aeb7c79de
repo_hash: 9b0502fdd5860b18fd6a9ddf86f148604a214fe4
repo_path: modules/tools
3 changes: 1 addition & 2 deletions make/_shared/generate-verify/util/verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ cleanup() {
}
trap "cleanup" EXIT SIGINT

cp -a "${projectdir}/." "${tmp}"
rm -rf "${tmp}/_bin" # clear all cached files
rsync -aEq "${projectdir}/." "${tmp}" --exclude "_bin/"
pushd "${tmp}" >/dev/null

"$@"
Expand Down
4 changes: 3 additions & 1 deletion make/_shared/help/help.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

set -eu -o pipefail
set -o errexit
set -o nounset
set -o pipefail

## 1. Build set of extracted line items

Expand Down
4 changes: 4 additions & 0 deletions make/_shared/repository-base/base/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ FORCE:

noop: # do nothing

# Set empty value for MAKECMDGOALS to prevent the "warning: undefined variable 'MAKECMDGOALS'"
# warning from happening when running make without arguments
MAKECMDGOALS ?=

##################################
# Host OS and architecture setup #
##################################
Expand Down
1 change: 1 addition & 0 deletions make/_shared/tools/00_mod.mk
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,7 @@ $(DOWNLOAD_DIR)/tools/rclone@$(RCLONE_VERSION)_$(HOST_OS)_$(HOST_ARCH): | $(DOWN
MISSING=$(shell (command -v curl >/dev/null || echo curl) \
&& (command -v sha256sum >/dev/null || command -v shasum >/dev/null || echo sha256sum) \
&& (command -v git >/dev/null || echo git) \
&& (command -v rsync >/dev/null || echo rsync) \
&& ([ -n "$(findstring vendor-go,$(MAKECMDGOALS),)" ] \
|| command -v $(GO) >/dev/null || echo "$(GO) (or run 'make vendor-go')") \
&& (command -v $(CTR) >/dev/null || echo "$(CTR) (or set CTR to a docker-compatible tool)"))
Expand Down
4 changes: 3 additions & 1 deletion make/_shared/tools/util/checkhash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

set -eu -o pipefail
set -o errexit
set -o nounset
set -o pipefail

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

Expand Down
4 changes: 3 additions & 1 deletion make/_shared/tools/util/hash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

set -eu -o pipefail
set -o errexit
set -o nounset
set -o pipefail

# This script is a wrapper for outputting purely the sha256 hash of the input file,
# ideally in a portable way.
Expand Down
7 changes: 4 additions & 3 deletions make/_shared/tools/util/lock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

set -eu -o pipefail
set -o errexit
set -o nounset
set -o pipefail

# This script is used to lock a file while it is being downloaded. It prevents
# multiple processes from downloading the same file at the same time or from reading
Expand Down Expand Up @@ -66,6 +68,5 @@ finish() {
rm -rf "$finalfile" || true
fi
rm -rf "$lockfile" || true
exit $rv
}
trap finish EXIT
trap finish EXIT SIGINT