mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-21 14:31:02 +02:00
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 <geoff@infradead.org>
This commit is contained in:
parent
eff7ed1aa2
commit
a34c97f748
@ -32,7 +32,7 @@ go_build() {
|
|||||||
|
|
||||||
go build -x -p "$(makeopts_jobs)" \
|
go build -x -p "$(makeopts_jobs)" \
|
||||||
-ldflags "${GO_LDFLAGS} -extldflags '${LDFLAGS}'" \
|
-ldflags "${GO_LDFLAGS} -extldflags '${LDFLAGS}'" \
|
||||||
-o "${GOPATH}/bin/${binary_name}" "${package_name}" \
|
-o "${GOBIN}/${binary_name}" "${package_name}" \
|
||||||
|| die "${ECLASS}: go build failed"
|
|| die "${ECLASS}: go build failed"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user