Skip to content

fix(packaging): accept a major version that is not a Centreon one in nfpm - #14

Merged
kduret merged 1 commit into
mainfrom
MON-216366-nfpm-foreign-major-version
Nov 30, 2026
Merged

kduret merged 1 commit into
mainfrom
MON-216366-nfpm-foreign-major-version

Conversation

@kduret

@kduret kduret commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Description

packaging/nfpm failed when major_version was not a Centreon version (YY.MM): the first switch of a product repository hit it with a dependency packaged as version 8.4 (major_version: 8).

  • NEXT_MAJOR_VERSION is now only computed for a YY.MM major version. Any other value gives MAJOR_VERSION alone and no error, which is what such packages need: their definitions do not read the next version.
  • The local actions computed a meaningless next version in that case instead of failing; nothing read it.

Fixes: MON-216366

@kduret
kduret requested a review from a team as a code owner November 30, 2026 09:04
@kduret kduret added bug Something isn't working gha labels Nov 30, 2026
@kduret
kduret merged commit bf2f02d into main Nov 30, 2026
6 of 9 checks passed
@kduret
kduret deleted the MON-216366-nfpm-foreign-major-version branch November 30, 2026 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working gha

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants