async function fetchRosinstallDependencies()

in robomaker-sample-app-ci/src/aws-robomaker-sample-application-ci.ts [77:88]


async function fetchRosinstallDependencies() {
  // Download dependencies not in apt if .rosinstall exists
  // When generate-sources: true, the expected behavior is to include sources from both workspaces including their dependencies. 
  // In order to make generate-sources work as expected, dependencies are fetched in both the workspaces here.
  for (let workspace of ["robot_ws", "simulation_ws"]) {
    if (fs.existsSync(path.join(workspace, '.rosinstall'))) {
      await exec.exec("vcs", ["import", "--input", ".rosinstall"], {cwd: workspace});
    }
  }


}