From 4de71c27a5a5d7af46c190651f5b5fa44ae0b9c1 Mon Sep 17 00:00:00 2001 From: xfiderek Date: Sat, 6 Jul 2024 15:18:56 +0200 Subject: [PATCH] Add ROSDISTRO env variable to Earthfile (issue #158) --- Earthfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Earthfile b/Earthfile index f9e43767..3b6ea166 100644 --- a/Earthfile +++ b/Earthfile @@ -24,6 +24,10 @@ setup: RUN locale-gen en_US en_US.UTF-8 RUN update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 ENV LANG=en_US.UTF-8 + + # TODO - the `setup` step will be merged with the `setup` step in spaceros docker Earthfile + # This variable will then act as a single source of truth. + ENV ROSDISTRO="humble" # Add the ROS 2 apt repository RUN apt-get install -y software-properties-common @@ -47,7 +51,8 @@ repos-file: RUN --no-cache sh scripts/generate-repos.sh \ --outfile ros2.repos \ --packages spaceros-pkgs.txt \ - --excluded-packages excluded-pkgs.txt + --excluded-packages excluded-pkgs.txt \ + --rosdistro $ROSDISTRO RUN --no-cache python3 scripts/merge-repos.py ros2.repos spaceros.repos -o output.repos # Save the generated .repos file