aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/godep.bbclass
blob: c82401c3130df9a156623cd7b577bd1324cc7dce (plain)
1
2
3
4
5
6
7
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 )
}