Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install colcon and vcs from packages #79

Open
wants to merge 7 commits into
base: noble
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,18 @@ pip3 install -r /tmp/gzdev/requirements.txt --break-system-packages
apt-get update 2>&1
echo ::endgroup::

echo ::group::Install tools: pip
pip3 install -U vcstool colcon-common-extensions --break-system-packages
echo ::endgroup::

if [ -f "$SOURCE_DEPENDENCIES" ] || [ -f "$SOURCE_DEPENDENCIES_VERSIONED" ] ; then
echo ::group::Prepare colcon and vcs for source dependencies
# Add colcon repository
mkdir -p /etc/apt/keyrings/
for tool in colcon vcstool; do
curl -fsSL "https://packagecloud.io/dirk-thomas/${tool}/gpgkey" | gpg --dearmor > "/etc/apt/keyrings/${tool}-archive-keyring.gpg"
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/${tool}-archive-keyring.gpg] https://packagecloud.io/dirk-thomas/${tool}/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | sudo tee /etc/apt/sources.list.d/${tool}.list > /dev/null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that vcstool is coming from a third-party repo as well. This probably what we want since the one in Ubuntu upstream is usually outdated, but the statement in the PR description mentions that we're using the one from upstream, so I was a little confused.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated the PR description

done
apt update 2>&1
apt -y install python3-vcstool \
python3-colcon-common-extensions
echo ::endgroup::
echo ::group::Fetch source dependencies
mkdir -p deps/src
if [ -f "$SOURCE_DEPENDENCIES" ] ; then
Expand Down