mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
godep.bbclass: Add helper class to enable go-dep tool
Many go packages can take advantage of dep tool since they manage their own dependencies, this class helps in using go dep tool for such packages (From OE-Core rev: 9bea8313b0dd5a6af08d15ee8634fe2ef9ee0f75) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
DEPENDS_append = " go-dep-native"
|
||||||
|
|
||||||
|
do_compile_prepend() {
|
||||||
|
rm -f ${WORKDIR}/build/src/${GO_IMPORT}/Gopkg.toml
|
||||||
|
rm -f ${WORKDIR}/build/src/${GO_IMPORT}/Gopkg.lock
|
||||||
|
( cd ${WORKDIR}/build/src/${GO_IMPORT} && dep init && dep ensure )
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user