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

Add '+upstream' suffix to published deb version #680

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

cottsay
Copy link
Member

@cottsay cottsay commented Nov 27, 2024

We continue to see interference between the deb packages we publish from the colcon project and efforts to package colcon as part of mainline Debian and Ubuntu. Using a high Debian-Version value mitigated the problems in most cases, but was not sufficient to eliminate all of the conflicts we're currently experiencing.

Using a debian version suffix which falls late alphabetically appears to give our packages preference by apt. If a user enables a repository which distributes packages created by the colcon project, it is likely that they wish to use these packages instead of the ones packaged by their platform.

Related to colcon/colcon-argcomplete#43 and colcon/colcon.readthedocs.org#103

We continue to see interference between the deb packages we publish from
the colcon project and efforts to package colcon as part of mainline
Debian and Ubuntu. Using a high Debian-Version value mitigated the
problems in most cases, but was not sufficient to eliminate all of the
conflicts we're currently experiencing.

Using a debian version suffix which falls late alphabetically appears to
give our packages preference by apt. If a user enables a repository
which distributes packages created by the colcon project, it is likely
that they wish to use these packages instead of the ones packaged by
their platform.
@cottsay cottsay self-assigned this Nov 27, 2024
Copy link

codecov bot commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.28%. Comparing base (0ada5a7) to head (d50e74f).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #680   +/-   ##
=======================================
  Coverage   87.28%   87.28%           
=======================================
  Files          68       68           
  Lines        3949     3949           
  Branches      760      760           
=======================================
  Hits         3447     3447           
  Misses        396      396           
  Partials      106      106           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cottsay
Copy link
Member Author

cottsay commented Nov 27, 2024

The test publish part of this PR's CI reported successful creation of the following artifacts:

  • deb_dist/python3-colcon-core_0.18.4+upstream-1_all.deb
  • deb_dist/python3-colcon-core_0.18.4+upstream-1.dsc

Copy link
Contributor

@nuclearsandwich nuclearsandwich left a comment

Choose a reason for hiding this comment

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

Does this negate the need for the debinc as well? If so it's potentially a nicer solution even forall the trouble it's taken to arrive at.

@cottsay
Copy link
Member Author

cottsay commented Nov 27, 2024

Does this negate the need for the debinc as well?

I believe so:

$ dpkg --compare-versions 0.0.0+upstream-1 gt 0.0.0-2; echo $?
0
$ dpkg --compare-versions 0.0.0+upstream-1 gt 0.0.0+ds-2; echo $?
0
$ dpkg --compare-versions 0.0.0+upstream-1 gt 0.0.0+upstream-2; echo $?
1

@cottsay cottsay merged commit a74fa97 into master Nov 28, 2024
36 checks passed
@cottsay cottsay deleted the cottsay/deb-version-suffix branch November 28, 2024 03:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants