diff --git a/projects/dgraph.io/package.yml b/projects/dgraph.io/package.yml index ed7cb753f4..b740a80c12 100644 --- a/projects/dgraph.io/package.yml +++ b/projects/dgraph.io/package.yml @@ -20,11 +20,12 @@ build: GOSUMDB: sum.golang.org GO111MODULE: on CGO_ENABLED: 0 - BUILDLOC: "{{prefix}}/bin/dgraph" + BUILDLOC: '{{prefix}}/bin/dgraph' LDFLAGS: - -s - -w - -X github.com/dgraph-io/dgraph/x.dgraphVersion={{version}} + - -X github.com/dgraph-io/dgraph/v{{version.major}}/x.dgraphVersion={{version}} linux: # or segmentation fault # fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575