-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(docker): replace the multiple
rosdep
commands with `resolv…
…e_rosdep_keys.sh`. (#5424) * run resolve_rosdep_keys.sh Signed-off-by: Yutaka Kondo <[email protected]> * style(pre-commit): autofix * update .dockerignore Signed-off-by: Yutaka Kondo <[email protected]> * chmod +x Signed-off-by: Yutaka Kondo <[email protected]> * fix location Signed-off-by: Yutaka Kondo <[email protected]> * remove rosdep update Signed-off-by: Yutaka Kondo <[email protected]> --------- Signed-off-by: Yutaka Kondo <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
21aa069
commit e637867
Showing
3 changed files
with
29 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
# Ignore Docker files | ||
docker | ||
!docker/etc | ||
!docker/scripts | ||
|
||
# Ignore a part of files under src | ||
src/**/.* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
function resolve_rosdep_keys() { | ||
local src_path=$1 | ||
local ros_distro=$2 | ||
|
||
rosdep keys --ignore-src --from-paths "$src_path" | | ||
xargs rosdep resolve --rosdistro "$ros_distro" | | ||
grep -v '^#' | | ||
sed 's/ \+/\n/g' | | ||
sort | ||
} | ||
|
||
resolve_rosdep_keys "$@" |