When building non-versioned recipes, like in Conan Center Index, where the version is specified in the conandata.yml, but not in the Conan recipe as an attribute, we have to pass the desired package version as a parameter, for instance:
conan create create all/ --version=1.0.0
This way, we will build the recipe in the folder all/ and target its version 1.0.0, listed in all/conandata.yml
The current command Conan create does not support such scenario: https://github.com/mm4cN/nvim-conan/blob/main/lua/commands.lua#L172.
It requires that the version is already listed in the conanfile.py.
I would suggest adapting that command to support --version as well, you could use vargs for appending any extra command like, so people will be free to not use --version, but any other argument as well.
When building non-versioned recipes, like in Conan Center Index, where the version is specified in the conandata.yml, but not in the Conan recipe as an attribute, we have to pass the desired package version as a parameter, for instance:
This way, we will build the recipe in the folder all/ and target its version 1.0.0, listed in all/conandata.yml
The current command
Conan createdoes not support such scenario: https://github.com/mm4cN/nvim-conan/blob/main/lua/commands.lua#L172.It requires that the version is already listed in the conanfile.py.
I would suggest adapting that command to support
--versionas well, you could use vargs for appending any extra command like, so people will be free to not use --version, but any other argument as well.