mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00

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>
9 lines
242 B
Plaintext
9 lines
242 B
Plaintext
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 )
|
|
}
|
|
|