@cryptotaxi247 / netdata-1 / commits / 59625e404

Add missing extension go.d (Windows) (#21070)

thiagoftsm committed Sep 30, 2025 at 11:23 UTC 59625e4046e7c9b21e978ceb3c82c2eb5112a386
2 files changed +9 -2
CMakeLists.txt
+8 -2
@@ -3187,9 +3187,15 @@ install(TARGETS netdatacli
3187 #
3188
3189 if(ENABLE_PLUGIN_GO)
3190 - add_go_target(go-plugin go.d.plugin src/go cmd/godplugin)
3190 + if (OS_WINDOWS)
3191 + set(GO_PLUGIN_BIN go.d.plugin.exe)
3192 + else()
3193 + set(GO_PLUGIN_BIN go.d.plugin)
3194 + endif()
3195 +
3196 + add_go_target(go-plugin ${GO_PLUGIN_BIN} src/go cmd/godplugin)
3197
3192 - install(PROGRAMS ${CMAKE_BINARY_DIR}/go.d.plugin
3198 + install(PROGRAMS ${CMAKE_BINARY_DIR}/${GO_PLUGIN_BIN}
3199 COMPONENT plugin-go
3200 DESTINATION usr/libexec/netdata/plugins.d)
3201
src/go/pkg/executable/executable.go
+1
@@ -20,6 +20,7 @@ func init() {
20 }
21
22 _, Name = filepath.Split(path)
23 + Name = strings.TrimSuffix(Name, ".exe")
24 Name = strings.TrimSuffix(Name, ".plugin")
25
26 if strings.HasSuffix(Name, ".test") {