diff options
Diffstat (limited to 'import-layers/yocto-poky/meta/classes/godep.bbclass')
-rw-r--r-- | import-layers/yocto-poky/meta/classes/godep.bbclass | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/import-layers/yocto-poky/meta/classes/godep.bbclass b/import-layers/yocto-poky/meta/classes/godep.bbclass new file mode 100644 index 000000000..c82401c31 --- /dev/null +++ b/import-layers/yocto-poky/meta/classes/godep.bbclass @@ -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 ) +} + |