]> source.dussan.org Git - gitea.git/commit
Allow non-semver packages in the Conan package registry (#20412)
authorGergely Nagy <algernon@users.noreply.github.com>
Fri, 22 Jul 2022 21:54:02 +0000 (23:54 +0200)
committerGitHub <noreply@github.com>
Fri, 22 Jul 2022 21:54:02 +0000 (22:54 +0100)
commit4d22bda4db4c29e61ff4ac7a53ab25e7ff8a55a3
tree2bc60e99a7548430000967d85b22847592225bec
parent599ae09a94e40f9ef567aa2ec7486f68a64a3384
Allow non-semver packages in the Conan package registry (#20412)

A lot of existing packages do not conform to SemVer, yet, they should be allowed
in the Conan package registry as-is. To achieve this, remove the SemVer check
from `NewRecipeReference`, and replace it with a simple empty string check.

A unit test with a non-semver version is also included.

Fixes #20405.

Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
modules/packages/conan/reference.go
modules/packages/conan/reference_test.go