Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102648035
D32054.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
437 B
Referenced Files
None
Subscribers
None
D32054.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
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)
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