mirror of
https://github.com/netdata/netdata.git
synced 2025-04-16 10:31:07 +00:00
set GOPROXY when building go.d.plugin (#18275)
* set GOPROXY when building go.d.plugin * rm extra "env"
This commit is contained in:
parent
0709a8f171
commit
83d8041c29
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ macro(add_go_target target output build_src build_dir)
|
|||
|
||||
add_custom_command(
|
||||
OUTPUT ${output}
|
||||
COMMAND "${CMAKE_COMMAND}" -E env CGO_ENABLED=0 "${GO_EXECUTABLE}" build -buildvcs=false -ldflags "${GO_LDFLAGS}" -o "${CMAKE_BINARY_DIR}/${output}" "./${build_dir}"
|
||||
COMMAND "${CMAKE_COMMAND}" -E env CGO_ENABLED=0 GOPROXY=https://proxy.golang.org,direct "${GO_EXECUTABLE}" build -buildvcs=false -ldflags "${GO_LDFLAGS}" -o "${CMAKE_BINARY_DIR}/${output}" "./${build_dir}"
|
||||
DEPENDS ${${target}_DEPS}
|
||||
COMMENT "Building Go component ${output}"
|
||||
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/${build_src}"
|
||||
|
|
Loading…
Add table
Reference in a new issue