Skip to content

Debian package uniqueness

Mathieu Parent requested to merge sathieu/gitlab:debian_uniqueness into master

Current behavior of Debian packages is to enforce unicity on (name, version, distribution) within a project (when debian? && !version.nil?) with condition not_pending_destruction.

In the future, we may need to support publishing a package to several distributions (i.e changing has_one :debian_publication to has_many :debian_publication). We may also need to change the model to improve performance.

Using stricter validations, will reduce the risk of problems like we have in Helm package (!107317 (comment 1219775268)).

After this MR, the unicity is enforced on (name, version) within a project (when debian?) with condition not_pending_destruction.

This MR is first part of #389228.

Merge request reports