]> source.dussan.org Git - gitea.git/commit
Allow non-semver packages in the Conan package registry (#20412) (#20523)
author6543 <6543@obermui.de>
Thu, 28 Jul 2022 20:19:56 +0000 (22:19 +0200)
committerGitHub <noreply@github.com>
Thu, 28 Jul 2022 20:19:56 +0000 (21:19 +0100)
commitda10ce8b074db6d6c770e08b69fc0272a133178f
treea133b68ad9128dcb2296a9c081aff687c78d4712
parent4ed32e79b6e39ad2f9bf8d95423bebc044a7cd67
Allow non-semver packages in the Conan package registry (#20412) (#20523)

Backport #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>
Co-authored-by: Gergely Nagy <algernon@users.noreply.github.com>
modules/packages/conan/reference.go
modules/packages/conan/reference_test.go