From d4c5ccf62185bb9d6068a3007e340445e9560ba2 Mon Sep 17 00:00:00 2001 From: Bassam Tabbara Date: Mon, 23 Jan 2017 14:35:29 -0800 Subject: [PATCH] build: fix incremental build on linux the go pkg directory was not bind mounted and resulted in lots of rebuilds. --- build/run | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/run b/build/run index 63c8a4823..430525417 100755 --- a/build/run +++ b/build/run @@ -37,7 +37,7 @@ BUILDER_HOME=/home/rook # mount arguments MOUNT_OPTS="\ - -v ${scriptdir}/../bin:${BUILDER_HOME}/go/src/${source_repo}/bin \ + -v ${scriptdir}/../bin:${BUILDER_HOME}/go/bin \ -v ${scriptdir}/../release:${BUILDER_HOME}/go/src/${source_repo}/release \ " @@ -92,10 +92,12 @@ else # /.work (bind mounted to host /.work/cross) # /.ccache (bind mounted to host CCACHE_DIR) # /bin (bind mounted to host /bin) + # /pkg (bind mounted to host /.work/cross/pkg) # /src/github.com/rook/rook (bind mounted to ) # MOUNT_OPTS="${MOUNT_OPTS} \ -v ${scriptdir}/../.work/cross:${BUILDER_HOME}/go/.work \ + -v ${scriptdir}/../.work/cross/pkg:${BUILDER_HOME}/go/pkg \ -v ${scriptdir}/..:${BUILDER_HOME}/go/src/${source_repo}" if [[ -d "${CCACHE_DIR}" ]]; then