Skip to content

Commit

Permalink
Do not run apt update if skipRosdepInstall==true
Browse files Browse the repository at this point in the history
  • Loading branch information
roncapat authored Dec 9, 2024
1 parent 5816ec0 commit e075c12
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/action-ros-ci.ts
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,9 @@ done`;
// Print HEAD commits of all repos
await execShellCommand(["vcs log -l1 src/"], options);

if (isLinux) {
// rosdep does not really work on Windows, so do not use it
// See: https://github.com/ros-infrastructure/rosdep/issues/610
if (!isWindows && !skipRosdepInstall) {
// Always update package index before installing packages
const dist: string = await determineDistrib();
if (dist === "ubuntu") {
Expand All @@ -662,10 +664,7 @@ done`;
} else {
core.setFailed(`Unsupported distribution ${dist}`);
}
}
// rosdep does not really work on Windows, so do not use it
// See: https://github.com/ros-infrastructure/rosdep/issues/610
if (!isWindows && !skipRosdepInstall) {

await installRosdeps(
buildPackageSelection,
rosdepSkipKeysSelection,
Expand Down

0 comments on commit e075c12

Please sign in to comment.