Stop bower from reaching outside the sandbox

Change-Id: Ie55f247a7f8e994c4422b0db512e5436e01d1585
This commit is contained in:
Ray Milkey 2018-07-31 14:22:40 -07:00 committed by Thomas Vachuska
parent 30bede5a8b
commit cc9620aee7

View File

@ -119,7 +119,9 @@ genrule(
outs = ["onos-gui-npm-install.tar"],
cmd = " ROOT=`pwd` &&" +
" export XDG_CONFIG_HOME=$(@D)/config &&" + # npm config cache to the sandbos
" export BABEL_DISABLE_CACHE=1" + # turn off babel cache
" export BABEL_DISABLE_CACHE=1 &&" + # turn off babel cache
" export bower_storage__packages=.bower &&" +
" export bower_storage__registry=.bower &&" +
" NPM=$$ROOT/$(location @nodejs//:bin/npm) &&" +
" mkdir -p tools/gui &&" +
" cd tools/gui &&" +
@ -144,6 +146,8 @@ genrule(
cmd = "(ROOT=`pwd` &&" +
" export XDG_CONFIG_HOME=$(@D)/config &&" +
" export BABEL_DISABLE_CACHE=1" +
" export bower_storage__packages=.bower &&" +
" export bower_storage__registry=.bower &&" +
" NPM=$(location @nodejs//:bin/npm) &&" +
" (mkdir -p web/gui && cd web/gui && tar xf ../../$(location :_web_app_all)) &&" +
" mkdir -p tools/gui && cd tools/gui &&" +