-
Notifications
You must be signed in to change notification settings - Fork 985
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
[question] alternative solution to Conan 1 alias? #16702
Comments
Hi @harsszegi
Still, it would be good to know about the versioning scheme, Conan 2 version ranges are more powerful than in Conan 1, there might be some other possible alternatives than using alias. |
Well, it is something like this: package_name/3.0.5+feature_conan2+558-d0d0582-dirty@user/dev feature_conan2 is the name of the Git branch, sanitized (feature/conan2) [btw I get this for "conan alias" (conan2) D:\workspace\virtualenv\conan2\Scripts>conan alias ERROR: Unknown command 'alias' |
Ok, to make it more compliant, it seems that things should be made part of pre-releases like:
With fields that have a natural resolution order first. Opt-in to resolve to pre-releases can be done in Conan 2 with a Still, the version resolution logic under different version-ranges would not be well defined, as fields as the branch name or the commit are not naturally ordered, and that breaks versioning approaches. One "devops" good practice is to use different server repositories to model certain stages of the SW, but not including the stages or things like the "branch" in the version name, as this will not allow to have package immutability. We are documenting this in conan-io/docs#3799
In Conan 2 it is not a command, but a |
Awesome, thanks a lot @memsharded, closing it! |
Hi,
we were using Conan 1 alias feature to overcome the fact that our versioning scheme is not 100% semver compliant. We have hacked this around via creating aliases with proper semver format to the original non-fully-semver-compliant version.
Is there any other solution to do something similar in Conan 2 (as alias is gone)?
Thanks,
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: