Page MenuHomeFreeBSD

D32054.diff
No OneTemporary

D32054.diff

diff --git a/Mk/Uses/go.mk b/Mk/Uses/go.mk
--- a/Mk/Uses/go.mk
+++ b/Mk/Uses/go.mk
@@ -215,8 +215,12 @@
.if ${go_ARGS:Mmodules} && defined(GO_MODULE)
gomod-clean:
+.if exists(${GO_CMD})
@${ECHO_MSG} "===> Cleaning Go module cache"
@${SETENV} ${GO_ENV} ${GO_CMD} clean -modcache
+.else
+ @${ECHO_MSG} "===> Skipping since ${GO_CMD} is not installed"
+.endif
# Hook up to distclean
.if !target(post-clean) && !make(clean)

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 7:43 AM (22 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14655405
Default Alt Text
D32054.diff (437 B)

Event Timeline