Fixes: https://tracker.ceph.com/issues/52507
Signed-off-by: Duncan Bellamy <dunk@denkimushi.com>
(cherry picked from commit
cd2b26f653ddedf0ed1b937cfaf8bcf7aaf48ce6)
Conflicts:
src/pybind/mgr/dashboard/CMakeLists.txt
- In master this file was moved to frontend folder. Since its not
done in pacific, just made the changes here.
add_npm_command(
OUTPUT "${CMAKE_SOURCE_DIR}/src/pybind/mgr/dashboard/frontend/node_modules"
- COMMAND CYPRESS_CACHE_FOLDER=${CMAKE_SOURCE_DIR}/build/src/pybind/mgr/dashboard/cypress NG_CLI_ANALYTICS=false npm ci ${mgr-dashboard-userconfig}
+ COMMAND CYPRESS_CACHE_FOLDER=${CMAKE_SOURCE_DIR}/build/src/pybind/mgr/dashboard/cypress NG_CLI_ANALYTICS=false npm ci -f ${mgr-dashboard-userconfig}
DEPENDS frontend/package.json
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src/pybind/mgr/dashboard/frontend
COMMENT "dashboard frontend dependencies are being installed"