Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149707648
D32054.1790754665.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
437 B
Referenced Files
None
Subscribers
None
D32054.1790754665.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Wed, Sep 30, 7:51 AM (7 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30032614
Default Alt Text
D32054.1790754665.diff (437 B)
Attached To
Mode
D32054: Mk/Uses/go.mk: Fix gomod-clean target when lang/go is not installed
Attached
Detach File
Event Timeline
Log In to Comment