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

<built_type> doesn't work anymore with multiple tags #1173

Closed
facontidavide opened this issue May 21, 2022 · 3 comments
Closed

<built_type> doesn't work anymore with multiple tags #1173

facontidavide opened this issue May 21, 2022 · 3 comments

Comments

@facontidavide
Copy link

This doesn't work anymore:

  <export>
      <build_type condition="$ROS_VERSION == 2">ament_cmake</build_type>
      <build_type condition="$ROS_VERSION == 1">catkin</build_type>
  </export>

If I run echo $ROS_VERSION I can see either 1 or 2

Error message:

Repository type: git
Found packages: behaviortree_cpp_v3
Traceback (most recent call last):
  File "/usr/bin/catkin_prepare_release", line 33, in <module>
    sys.exit(load_entry_point('catkin-pkg==0.5.0', 'console_scripts', 'catkin_prepare_release')())
  File "/usr/lib/python3/dist-packages/catkin_pkg/cli/prepare_release.py", line 217, in main
    _main()
  File "/usr/lib/python3/dist-packages/catkin_pkg/cli/prepare_release.py", line 272, in _main
    build_type = package.get_build_type()
  File "/usr/lib/python3/dist-packages/catkin_pkg/package.py", line 167, in get_build_type
    raise InvalidPackage('Only one <build_type> element is permitted.', self.filename)
catkin_pkg.package.InvalidPackage: Error(s) in package '././package.xml':
Only one <build_type> element is permitted.

@Rayman
Copy link

Rayman commented May 23, 2022

Is this the same error as #1170?

@gbiggs
Copy link
Contributor

gbiggs commented May 24, 2022

Duplicate of #1170

@gbiggs gbiggs marked this as a duplicate of #1170 May 24, 2022
@gbiggs gbiggs closed this as completed May 24, 2022
@ivanpauno
Copy link
Collaborator

I think that this and #1170 are different, but IIUC the issue reported here was solved in ros-infrastructure/catkin_pkg#336.

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

No branches or pull requests

4 participants