Skip to content

Conan create does not support package version #2

Description

@uilianries

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions