Skip to content

Commit 87ac9e3

Browse files
Merge pull request #1682 from cert-manager/self-upgrade-master
[CI] Merge self-upgrade-master into master
2 parents bee940a + d67e855 commit 87ac9e3

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
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: 2e0c0b8f4e6aa1869a695a26c452b61970f30532
13+
repo_hash: 01f8036da297256be41f6cc520cb248cb0f609fc
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: 2e0c0b8f4e6aa1869a695a26c452b61970f30532
18+
repo_hash: 01f8036da297256be41f6cc520cb248cb0f609fc
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: 2e0c0b8f4e6aa1869a695a26c452b61970f30532
23+
repo_hash: 01f8036da297256be41f6cc520cb248cb0f609fc
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: 2e0c0b8f4e6aa1869a695a26c452b61970f30532
28+
repo_hash: 01f8036da297256be41f6cc520cb248cb0f609fc
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: 2e0c0b8f4e6aa1869a695a26c452b61970f30532
33+
repo_hash: 01f8036da297256be41f6cc520cb248cb0f609fc
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: 2e0c0b8f4e6aa1869a695a26c452b61970f30532
38+
repo_hash: 01f8036da297256be41f6cc520cb248cb0f609fc
3939
repo_path: modules/tools

make/_shared/tools/00_mod.mk

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,17 @@ endif
1818

1919
##########################################
2020

21-
export DOWNLOAD_DIR ?= $(CURDIR)/$(bin_dir)/downloaded
22-
export GOVENDOR_DIR ?= $(CURDIR)/$(bin_dir)/go_vendor
21+
default_shared_dir := $(CURDIR)/$(bin_dir)
22+
# If $(HOME) is set and $(CI) is not, use the $(HOME)/.cache
23+
# folder to store downloaded binaries.
24+
ifneq ($(shell printenv HOME),)
25+
ifeq ($(shell printenv CI),)
26+
default_shared_dir := $(HOME)/.cache/makefile-modules
27+
endif
28+
endif
29+
30+
export DOWNLOAD_DIR ?= $(default_shared_dir)/downloaded
31+
export GOVENDOR_DIR ?= $(default_shared_dir)/go_vendor
2332

2433
$(bin_dir)/tools $(DOWNLOAD_DIR)/tools:
2534
@mkdir -p $@

0 commit comments

Comments
 (0)