summaryrefslogtreecommitdiffstats
path: root/src/go/collectors/go.d.plugin/hack/go-build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/go/collectors/go.d.plugin/hack/go-build.sh')
-rwxr-xr-xsrc/go/collectors/go.d.plugin/hack/go-build.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/go/collectors/go.d.plugin/hack/go-build.sh b/src/go/collectors/go.d.plugin/hack/go-build.sh
index 960eaa20ba..c211cff4d8 100755
--- a/src/go/collectors/go.d.plugin/hack/go-build.sh
+++ b/src/go/collectors/go.d.plugin/hack/go-build.sh
@@ -36,7 +36,7 @@ WHICH="$1"
VERSION="${TRAVIS_TAG:-$(git describe --tags --always --dirty)}"
GOLDFLAGS=${GLDFLAGS:-}
-GOLDFLAGS="$GOLDFLAGS -w -s -X main.version=$VERSION"
+GOLDFLAGS="$GOLDFLAGS -w -s -X github.com/netdata/netdata/go/go.d.plugin/pkg/buildinfo.Version=$VERSION"
build() {
echo "Building ${GOOS}/${GOARCH}"