mirror of
https://github.com/opennetworkinglab/onos.git
synced 2026-05-05 20:26:16 +02:00
Stop bower from reaching outside the sandbox
Change-Id: Ie55f247a7f8e994c4422b0db512e5436e01d1585
This commit is contained in:
parent
30bede5a8b
commit
cc9620aee7
@ -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 &&" +
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user