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

ign-tools auto version #706

Closed
wants to merge 1 commit into from
Closed

ign-tools auto version #706

wants to merge 1 commit into from

Conversation

chapulina
Copy link
Contributor

I broke CI for ign-tools1 on #702 because now the package ends up being ignition-tools1 when it should be ignition-tools.

I moved the logic around to support this specific use case. The COLCON_AUTO_MAJOR_VERSION variable's meaning is a bit changed now, but grepping through the code it looks like ign-tools is the only one setting it to false anyway.

I don't know if the syntax is correct 🙃

Test builds:

  • ign-tools1: Build Status
  • ign-tools2: Build Status

Signed-off-by: Louise Poubel <louise@openrobotics.org>
if "%COLCON_AUTO_MAJOR_VERSION%" == "true" (
for /f %%i in ('python "%SCRIPT_DIR%\tools\detect_cmake_major_version.py" "%WORKSPACE%\%VCS_DIRECTORY%\CMakeLists.txt"') do set PKG_MAJOR_VERSION=%%i
for /f %%i in ('python "%SCRIPT_DIR%\tools\detect_cmake_major_version.py" "%WORKSPACE%\%VCS_DIRECTORY%\CMakeLists.txt"') do set PKG_MAJOR_VERSION=%%i
if "%COLCON_AUTO_MAJOR_VERSION%" == "true" || "%PKG_MAJOR_VERSION%" != "1" (
set COLCON_PACKAGE=%COLCON_PACKAGE%!PKG_MAJOR_VERSION!
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe the problem is this line? perhaps we should be trying to detect the cmake project name rather than the major version?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was trying to keep this generic, but in the end of the day this logic seems like it's here only for ign-tools, so we could hardcode the name here. Is this what you mean?

@scpeters
Copy link
Contributor

the underlying issue has already been fixed by #713

@scpeters scpeters closed this Apr 26, 2022
@scpeters scpeters deleted the chapulina/tools1 branch May 3, 2022 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants