Skip to content

Commit d66baca

Browse files
Merge pull request #1669 from cert-manager/self-upgrade-master
[CI] Merge self-upgrade-master into master
2 parents a29b6db + b1c2125 commit d66baca

File tree

3 files changed

+114
-103
lines changed

3 files changed

+114
-103
lines changed

klone.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,30 @@ targets:
1010
- folder_name: boilerplate
1111
repo_url: https://github.com/cert-manager/makefile-modules.git
1212
repo_ref: main
13-
repo_hash: 75dd712efe2c789e1414062ad710b5f2a7731a13
13+
repo_hash: 17f1b472676a6d4e5a8d3b05367cd42a520b4b04
1414
repo_path: modules/boilerplate
1515
- folder_name: generate-verify
1616
repo_url: https://github.com/cert-manager/makefile-modules.git
1717
repo_ref: main
18-
repo_hash: 75dd712efe2c789e1414062ad710b5f2a7731a13
18+
repo_hash: 17f1b472676a6d4e5a8d3b05367cd42a520b4b04
1919
repo_path: modules/generate-verify
2020
- folder_name: help
2121
repo_url: https://github.com/cert-manager/makefile-modules.git
2222
repo_ref: main
23-
repo_hash: 75dd712efe2c789e1414062ad710b5f2a7731a13
23+
repo_hash: 17f1b472676a6d4e5a8d3b05367cd42a520b4b04
2424
repo_path: modules/help
2525
- folder_name: klone
2626
repo_url: https://github.com/cert-manager/makefile-modules.git
2727
repo_ref: main
28-
repo_hash: 75dd712efe2c789e1414062ad710b5f2a7731a13
28+
repo_hash: 17f1b472676a6d4e5a8d3b05367cd42a520b4b04
2929
repo_path: modules/klone
3030
- folder_name: repository-base
3131
repo_url: https://github.com/cert-manager/makefile-modules.git
3232
repo_ref: main
33-
repo_hash: 75dd712efe2c789e1414062ad710b5f2a7731a13
33+
repo_hash: 17f1b472676a6d4e5a8d3b05367cd42a520b4b04
3434
repo_path: modules/repository-base
3535
- folder_name: tools
3636
repo_url: https://github.com/cert-manager/makefile-modules.git
3737
repo_ref: main
38-
repo_hash: 75dd712efe2c789e1414062ad710b5f2a7731a13
38+
repo_hash: 17f1b472676a6d4e5a8d3b05367cd42a520b4b04
3939
repo_path: modules/tools

make/_shared/generate-verify/util/verify.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,17 @@ cleanup() {
4444
}
4545
trap "cleanup" EXIT SIGINT
4646

47-
rsync -aEq "${projectdir}/." "${tmp}" --exclude "_bin/"
47+
# Why not just "cp" to the tmp dir?
48+
# A dumb "cp" will fail sometimes since _bin can get changed while it's being copied if targets are run in parallel,
49+
# and cp doesn't have some universal "exclude" option to ignore "_bin"
50+
#
51+
# We previously used "rsync" here, but:
52+
# 1. That's another tool we need to depend on
53+
# 2. rsync on macOS 15.4 and newer is actually openrsync, which has different permissions and throws errors when copying git objects
54+
#
55+
# So, we use find to list all files except _bin, and then copy each in turn
56+
find . -maxdepth 1 -not \( -path "./_bin" \) -not \( -path "." \) | xargs -I% cp -af "${projectdir}/%" "${tmp}/"
57+
4858
pushd "${tmp}" >/dev/null
4959

5060
"$@"

0 commit comments

Comments
 (0)