From a34c97f748265a8ec6a7de7d8341396d2b23d188 Mon Sep 17 00:00:00 2001 From: Geoff Levand Date: Wed, 20 May 2015 10:45:41 -0700 Subject: [PATCH] eclass/coreos-go.eclass: Fix GOPATH usage We currenly use ${GOPATH}/bin as the path for the compiler generated executable, but this usage does not allow ebuilds to add additional local paths to GOPATH. To allow for this usage, change the invocation of the compiler to use ${GOBIN}. Signed-off-by: Geoff Levand --- .../src/third_party/coreos-overlay/eclass/coreos-go.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/coreos-go.eclass b/sdk_container/src/third_party/coreos-overlay/eclass/coreos-go.eclass index b2b03adb27..e5a5b27a50 100644 --- a/sdk_container/src/third_party/coreos-overlay/eclass/coreos-go.eclass +++ b/sdk_container/src/third_party/coreos-overlay/eclass/coreos-go.eclass @@ -32,7 +32,7 @@ go_build() { go build -x -p "$(makeopts_jobs)" \ -ldflags "${GO_LDFLAGS} -extldflags '${LDFLAGS}'" \ - -o "${GOPATH}/bin/${binary_name}" "${package_name}" \ + -o "${GOBIN}/${binary_name}" "${package_name}" \ || die "${ECLASS}: go build failed" }