You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is Conan intended to support semver and allow uppercase in prerelease version numbers? If it is, there is a bug in the check for uppercase on the entire package reference instead of just the name field. If it is not, there is a bug in the documentation that suggests that Conan supports semver-style prereleases, and the content at https://docs.conan.io/2.0/tutorial/versioning/version_ranges.html#semantic-versioning should be amended to make this limitation clear.
Logs
> conan create conanfile.py
======== Exporting recipe to the cache ========
ERROR: Conan packages names 'foo/1.2.3-SNAPSHOT' must be all lowercase
The text was updated successfully, but these errors were encountered:
You are right, in this case, it seems that the docs are missing some clarification and explicitly stating the constraint.
Conan 2.0 moved to limit package identifiers to lower case, mostly to avoid name collisions, typo-squatting, or user-confusion. The problem is making foo/1.2.3 different to Foo/1.2.3, as it brings a lot of problems and risks, and making them the same (case-insensitive) brings both implementation challenges and user confusions.
The same happens for foo/1.2.3-Snapshot or foo/1.2.3-snapshot. Making them different versions is problematic and even a security risk, and making them the same is quite challenging and confusing at the least.
So it is intended that all version letters are only lowercase. I will move this ticket to the docs repo to clarify this constraint. Thanks again for your feedback!
Environment details
Steps to reproduce
1.2.3-SNAPSHOT
.conan create
for this package.According to the semver 2.0 standard, uppercase characters should be allowed in the prerelease segment.
According to Conan documentation, Conan supports version numbers that are a superset of the semver specification: https://docs.conan.io/2.0/tutorial/versioning/version_ranges.html#semantic-versioning
However, the documentation for the
version
attribute at https://docs.conan.io/2.0/reference/conanfile/attributes.html#version indicates that it has the same restriction asname
, andname
only supports lowercase.Is Conan intended to support semver and allow uppercase in prerelease version numbers? If it is, there is a bug in the check for uppercase on the entire package reference instead of just the name field. If it is not, there is a bug in the documentation that suggests that Conan supports semver-style prereleases, and the content at https://docs.conan.io/2.0/tutorial/versioning/version_ranges.html#semantic-versioning should be amended to make this limitation clear.
Logs
The text was updated successfully, but these errors were encountered: