-
Notifications
You must be signed in to change notification settings - Fork 948
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conan version ranges not working with loosely names packages. #4630
Comments
Update: I resolved this by reworking the git tag to fit SEMVER loose versioning requirements. This works for me, and I no longer need |
Another update:
|
Hi, @Mark-Hatch-Bose. We are using
As you can see, it has parsed I'm sure it is the root of your problem, four numbers is not a valid semver, but I cannot tell you if this behaviour is a bug or a feature in the |
Thanks for showing me this! Looks like I'll need to create an issue with SemVer to fully understand. Even formatting it as you mentioned, max_satisfying is not recognizing that it can grab either...
In testing though, I found that this works
This does not work
|
I'm closing as I think I fully understand the behavior now, thanks @jgsogo for the help! |
You are welcome! During the development of the version ranges, the loose and the pre-release arguments I found that |
Just in case anyone looks at this in the future: To use git tag versioning: Version ranges should look like [>=2.0.0-0, include_prerelease=True] Everything seems to be working now. |
Thanks for the recap, maybe it makes sense to add this example to the version ranges docs or to the package version from SCM ones. I will open an issue there. |
@jgsogo here is the code I'm using to restructure the git tag to fit the
|
The way we are using prereleases is not working as intended with certain version ranges like compatible versioning. Loose versioning + micro versions seems to work, but there seems to be a issue in node-semver when the patch number is greater than a single digit. |
I've read npm/node-semver#164 and npm/node-semver#167, but it looks like we cannot do much on our side. If what you say about Thanks! |
Doesn't seem to be a Conan issue. This is all a workaround till |
Hi! You should give a try to |
Updated with some testing on |
To help us debug your issue please explain:
Conan Version 1.12.2
Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial
This is a workaround for: #4600, see latest comments
Conan version ranges don't work as expected with
include_prerelease=True
I'm expecting it to be able to find my latest package, but it does not.
I have the following packages on artifactory:
CastleConanCommon/0.0.3@master/latest
CastleConanCommon/0.0.4-3-gff22b81@master/latest
The
0.0.4
is now usinggit describe
to uniquely version every commit.a test conanfile with
This results in the
conan install . -u
to failHowever, if I change the build_requires to
build_requires = "CastleConanCommon/[>=0.0.3, include_prerelease=True]@master/latest"
it works...
I'd expect that semver would recognized the first part
0.0.4-3-gff22b81
as0.0.4
and be able to find the package.The text was updated successfully, but these errors were encountered: