Skip to content

Commit c5f638f

Browse files
authored
Add Makefile go.mod.cachedir for release pipeline compatibility (#279)
We only had go.cachedir, provider-kubernetes also had go.mod.cachedir. This is used here: https://github.com/crossplane-contrib/provider-workflows/blob/e2da965b49f5bfff36da597dce4737cc30c83c7b/.github/workflows/publish-provider.yml#L110-L114
1 parent 2dd5eb1 commit c5f638f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ submodules:
103103
go.cachedir:
104104
@go env GOCACHE
105105

106+
go.mod.cachedir:
107+
@go env GOMODCACHE
108+
106109
# NOTE(hasheddan): we must ensure up is installed in tool cache prior to build
107110
# as including the k8s_tools machinery prior to the xpkg machinery sets UP to
108111
# point to tool cache.
@@ -131,7 +134,7 @@ dev-clean: $(KIND) $(KUBECTL)
131134
@$(INFO) Deleting kind cluster
132135
@$(KIND) delete cluster --name=$(PROJECT_NAME)-dev
133136

134-
.PHONY: submodules fallthrough test-integration run crds.clean dev dev-clean
137+
.PHONY: submodules fallthrough test-integration run crds.clean dev dev-clean go.mod.cachedir go.cachedir
135138

136139
# ====================================================================================
137140
# Special Targets

0 commit comments

Comments
 (0)